Advertisement
Guest User

Untitled

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