Skip to content

Instantly share code, notes, and snippets.

@gholadr
Last active December 29, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gholadr/7744351 to your computer and use it in GitHub Desktop.
Save gholadr/7744351 to your computer and use it in GitHub Desktop.
why isnt this working? I get a NoMethodError
class Foo < Fixnum
def initialize value
super value
end
def increment
self + 1
end
end
Foo.new(5).increment + 4 # => 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment