jrtbka
Last Updated: February 25, 2016
·
235
· mejarc
152 5295 img

Whitespace in irb

...Makes a difference.

irb(main):017:0> class Greeter
irb(main):018:1>   attr_accessor :name
irb(main):019:1> end

 irb(main):022:0> m.respond_to?('name =')
=> false

irb(main):023:0> m.respond_to?('name=')
=> true
Say Thanks
Respond