I know this works: proc = Proc.new do puts self.hi + \' world\' end class Usa def hi \"Hello!\" end end Usa.new.instance_eval &proc