Sha256: 68bde7ae064968512988463bd4a12ed8e517f269a426abc2d528e7adfd3d29e2
Contents?: true
Size: 339 Bytes
Versions: 48
Compression:
Stored size: 339 Bytes
Contents
class Object # ==== Parameters # attr<~to_s>:: The name of the instance variable to get. # # ==== Returns # Object:: The instance variable @attr for this object. # # ==== Examples # # In a spec # @my_obj.assigns(:my_value).should == @my_value def assigns(attr) self.instance_variable_get("@#{attr}") end end
Version data entries
48 entries across 42 versions & 5 rubygems