/lib/object.rb

http://github.com/feyeleanor/RubyGoLightly · Ruby · 9 lines · 8 code · 1 blank · 0 comment · 1 complexity · 9645039f13b2ddcb65456d2628e4a69b MD5 · raw file

  1. class Object
  2. def respond_to?(message)
  3. !!method(message)
  4. end
  5. def ==(other)
  6. object_id == other.object_id
  7. end
  8. end