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 Stiglitz 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 Stiglitz 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!
--
Antonio Cangiano
My Ruby blog: http://www.antoniocangiano.com
Happy New Year all! (Just turned it here on the East Coast)
On 12/31/05, Benjamin Stiglitz <ben@tanjero.com> wrote:
Best wishes to all of you and your families, and may we all enjoy
more of Ruby!
Benjamin Stiglitz <ben@tanjero.com> 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.
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
On 1/1/06, Benjamin Stiglitz <ben@tanjero.com> 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!-Ben
James Britt wrote:
Even those who don't use Ruby.
Happy? Without Ruby? Impossible. (just kidding...)
Cheers,
--
Antonio Cangiano
My Ruby blog: http://www.antoniocangiano.com
Benjamin Stiglitz 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
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 Dec 31, 2005, at 9:45 PM, James Britt wrote:
Happy New Year everyone -- It's sure gonna be exciting times for all us
Rubyists!!!
Cheers,
Obie
On 1/1/06, Gregory Brown <gregory.t.brown@gmail.com> wrote:
On 12/31/05, Benjamin Stiglitz <ben@tanjero.com> 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)
Soon the evil GC will come and take you a Year.
I always disable GC before making statements using code!
-Ben