lib/labelify.rb
# Scope a piece of the form to another object.
Scope a piece of the form to another object.
Scope a piece of the form to another object .
def with_object(object_name, object = nil)
      object ||= eval("@#{object_name}", @options[:binding])
      old_object, old_object_name = @object, @object_name
      @object_name, @object = object_name, object
      yield self
    ensure
      @object, @object_name = old_object, old_object_name
    end
def with_object ( object_name , object = nil ) object ||= eval ( "@#{object_name}" , @options [ :binding ] ) old_object , old_object_name = @object , @object_name @object_name , @object = object_name , object yield self ensure @object , @object_name = old_object , old_object_name end
Scope a piece of the form to another object.
Scope a piece of the form to another object .
object_name
<not_specific>
object
<not_specific>