Skip to content

Instantly share code, notes, and snippets.

@nashby
Last active Apr 5, 2018
Embed
What would you like to do?
module Empty; end
class Foo
singleton_class.prepend(Empty)
def self.foo; end
end
Foo.singleton_methods(:false) # => [:foo]
Foo.singleton_method(:foo) # => NameError (undefined singleton method `foo' for `Foo')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment