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