A
Ara.T.Howard
i know there is a way to do this - but how
class C
protected
def meth
42
end
end
c = C::new
c.instance_eval{ p meth }
this throws an error, of course, but i'm too tired to remember how to work
around it.
-a
--
===============================================================================
| ara [dot] t [dot] howard [at] noaa [dot] gov
| all happiness comes from the desire for others to be happy. all misery
| comes from the desire for oneself to be happy.
| -- bodhicaryavatara
===============================================================================
class C
protected
def meth
42
end
end
c = C::new
c.instance_eval{ p meth }
this throws an error, of course, but i'm too tired to remember how to work
around it.
-a
--
===============================================================================
| ara [dot] t [dot] howard [at] noaa [dot] gov
| all happiness comes from the desire for others to be happy. all misery
| comes from the desire for oneself to be happy.
| -- bodhicaryavatara
===============================================================================