segunda-feira, 24 de setembro de 2007

Ruby e suas travessuras

irb(main):001:0> def some(thing)
irb(main):002:1> puts "some#{thing}"
irb(main):003:1> end
=> nil
irb(main):004:0> some "thing"
something
=> nil
irb(main):005:0> some = "thing"
=> "thing"
irb(main):006:0> some(some)
something
=> nil

Nenhum comentário: