a guest Oct 12th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- class SomeClass
- def some_method
- @ivar = "this is ivar"
- self.class.send(:attr_reader, :ivar)
- a = SomeClass.new
- p a.ivar
RAW Paste Data