Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- irb(main):001:0> 1.class
- => Integer
- irb(main):002:0> 1.to_s
- => "1"
- irb(main):003:0> class Integer
- irb(main):004:1> def to_s
- irb(main):005:2> "two"
- irb(main):006:2> end
- irb(main):007:1> end
- => :to_s
- irb(main):008:two> 1.to_s
- => "two"
- irb(main):009:two> 3.to_s
- => "two"
- # WHAT HAVE I DONE TO MY LIFE?!
Add Comment
Please, Sign In to add comment