foo.instance_eval &proc
instance_eval
can take a block instead of a string, and the &
operator turns the proc into a block for use with the method call.
foo.instance_eval &proc
instance_eval
can take a block instead of a string, and the &
operator turns the proc into a block for use with the method call.