Skip to content

Instantly share code, notes, and snippets.

@roidrage
Created September 19, 2008 19:16
Show Gist options
  • Save roidrage/11635 to your computer and use it in GitHub Desktop.
Save roidrage/11635 to your computer and use it in GitHub Desktop.
class Bar
def self.foo
puts "foo.bar"
end
end
Bar.foo # => outputs foo.bar
class << Bar
remove_method :foo
end
Bar.foo # => NoMethodError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment