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
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
Benjamin S. wrote:
Since no one’s said it:
Year.new.happy!
=> #<Year:2006 @happy=true>
Year.new.happy?
=> trueBest 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
Ruby Code & Style - 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
Benjamin S. wrote:
Since no one’s said it:
Year.new.happy!
=> #<Year:2006 @happy=true>Year.new.happy?
=> trueBest wishes to all of you and your families, and may we all enjoy more
of Ruby!
Thank you Benjamin.
Happy NEW YEAR everyone!
On Dec 31, 2005, at 9:45 PM, James B. wrote:
http://www.ruby-doc.org - Ruby Help & Documentation
Ruby Code & Style - 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 ~
On 12/31/05, Benjamin S. [email protected] 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)
Happy New Year everyone – It’s sure gonna be exciting times for all us
Rubyists!!!
Cheers,
Obie
James B. wrote:
Even those who don’t use Ruby.
Happy? Without Ruby? Impossible. (just kidding…)
Cheers,
Benjamin S. [email protected] writes:
Since no one’s said it:
Year.new.happy!
=> #<Year:2006 @happy=true>
Year.new.happy?
=> trueBest 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.
On 1/1/06, Benjamin S. [email protected] 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
Soon the evil GC will come and take you a Year.
I always disable GC before making statements using code!
-Ben
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs