Skip to content

Instantly share code, notes, and snippets.

@flazz
Created September 1, 2009 20:34
Show Gist options
  • Save flazz/179372 to your computer and use it in GitHub Desktop.
Save flazz/179372 to your computer and use it in GitHub Desktop.
module Foo
private
def m
puts 'PRIVATE'
end
end
class Bar
include Foo
end
Bar.new.m
# NoMethodError: private method `m' called for #<Bar:0x105ae64>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment