Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. $ ruby protected-example-1.rb
  2. public foo
  3. protected-example-1.rb:17:in `<main>': private method `private_foo' called for #<MyClass:0x007fb7920c0fc0> (NoMethodError)
  4. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement