Forum: Ruby Happy New Year

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Benjamin S. (Guest)
on 2006-01-01 04:06
(Received via mailing list)
Since no one's said it:

   >> Year.new.happy!
   => #<Year:2006 @happy=true>
   >> Year.new.happy?
   => true

Best wishes to all of you and your families, and may we all enjoy
more of Ruby!

  -Ben
James B. (Guest)
on 2006-01-01 04:48
(Received via mailing list)
Benjamin S. wrote:
> Since no one's said it:
>
>   >> Year.new.happy!
>   => #<Year:2006 @happy=true>
>   >> Year.new.happy?
>   => true
>
> Best wishes to all of you and your families, and may we all enjoy  more
> of Ruby!

Thanks!  Same to you and yours, and to all hackers everywhere.

Even those who don't use Ruby.

:)


James (~4 hours from next year)


--

http://www.ruby-doc.org       - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com      - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com     - Playing with Better Toys
http://www.30secondrule.com   - Building Better Tools
Antonio C. (Guest)
on 2006-01-01 06:33
(Received via mailing list)
Benjamin S. wrote:
> Since no one's said it:
>
>   >> Year.new.happy!
>   => #<Year:2006 @happy=true>
>   >> Year.new.happy?
>   => true
>
> Best wishes to all of you and your families, and may we all enjoy  more
> of Ruby!

Thank you Benjamin.

Happy NEW YEAR everyone! ;-)
Antonio C. (Guest)
on 2006-01-01 06:33
(Received via mailing list)
James B. wrote:
> Even those who don't use Ruby.

Happy? Without Ruby? Impossible. (just kidding...) :-)

Cheers,
J. Ryan S. (Guest)
on 2006-01-01 06:39
(Received via mailing list)
On Dec 31, 2005, at 9:45 PM, James B. wrote:

>
> http://www.ruby-doc.org       - Ruby Help & Documentation
> http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
> http://www.rubystuff.com      - The Ruby Store for Ruby Stuff
> http://www.jamesbritt.com     - Playing with Better Toys
> http://www.30secondrule.com   - Building Better Tools
>

(1..10).to_a.reverse.each do | sec |
	puts sec
	puts 'Happy New Year!' if sec == 1
end

> Thanks!  Same to you and yours, and to all hackers everywhere.

Aye!

~ ryan ~
Gregory B. (Guest)
on 2006-01-01 07:06
(Received via mailing list)
On 12/31/05, Benjamin S. <removed_email_address@domain.invalid> wrote:

> Best wishes to all of you and your families, and may we all enjoy
> more of Ruby!

Happy New Year all! (Just turned it here on the East Coast)
Obie F. (Guest)
on 2006-01-01 07:19
(Received via mailing list)
Happy New Year everyone -- It's sure gonna be exciting times for all us
Rubyists!!!

Cheers,
Obie
Christian N. (Guest)
on 2006-01-01 16:58
(Received via mailing list)
Benjamin S. <removed_email_address@domain.invalid> writes:

> Since no one's said it:
>
>    >> Year.new.happy!
>    => #<Year:2006 @happy=true>
>    >> Year.new.happy?
>    => true
>
> Best wishes to all of you and your families, and may we all enjoy
> more of Ruby!

Soon the evil GC will come and take you a Year. ;-)
Benjamin S. (Guest)
on 2006-01-02 07:31
(Received via mailing list)
> Soon the evil GC will come and take you a Year. ;-)

I always disable GC before making statements using code!

-Ben
Ilmari H. (Guest)
on 2006-01-02 08:29
(Received via mailing list)
On 1/1/06, Benjamin S. <removed_email_address@domain.invalid> wrote:
>   -Ben
I'm clearly doing something wrong here:

irb(main):001:0> class Year
irb(main):002:1> end
=> nil
irb(main):003:0> 2006 = Year.new
SyntaxError: compile error
(irb):3: syntax error
2006 = Year.new
      ^
        from (irb):3
irb(main):004:0> 2006.happy?
NoMethodError: undefined method `happy?' for 2006:Fixnum
        from (irb):4
irb(main):005:0> 2006.happy!
NoMethodError: undefined method `happy!' for 2006:Fixnum
        from (irb):5
irb(main):006:0> 2006.frozen?
=> false
irb(main):007:0> 2006.freeze
=> 2006
irb(main):008:0> 2006.frozen?
=> false
irb(main):009:0> 2006.power!
ArgumentError: wrong number of arguments (0 for 1)
        from (irb):9:in `power!'
        from (irb):9
irb(main):010:0> 2006.help:power!
No help found.
=> nil
This topic is locked and can not be replied to.