why do we wabt to use private methods in ruby 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