how to call ruby private methods code example
Example: how to call ruby private methods
class Sample
private
def baz
'baz called'
end
end
Sample.new.instance_eval('baz')
# => 'baz called'
Sample.new.instance_eval { baz }
# => 'baz called
How to call private methods