Class | Object |
In: |
merb-core/lib/merb-core/test/test_ext/object.rb
|
Parent: | Object |
attr<~to_s>: | The name of the instance variable to get. |
Object: | The instance variable @attr for this object. |
# In a spec @my_obj.assigns(:my_value).should == @my_value
# File merb-core/lib/merb-core/test/test_ext/object.rb, line 11 11: def assigns(attr) 12: self.instance_variable_get("@#{attr}") 13: end