SHARE
TWEET

Untitled

a guest Jun 24th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. $
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top