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

Version Path
joe-merb-core-0.9.8 lib/merb-core/test/test_ext/object.rb
wycats-merb-core-0.9.8 lib/merb-core/test/test_ext/object.rb
wycats-merb-core-0.9.9 lib/merb-core/test/test_ext/object.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/object.rb
merb-core-1.1.3 lib/merb-core/test/test_ext/object.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/object.rb
merb-core-1.1.2 lib/merb-core/test/test_ext/object.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/object.rb
merb-core-1.1.1 lib/merb-core/test/test_ext/object.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/object.rb
merb-core-1.1.0 lib/merb-core/test/test_ext/object.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/object.rb
merb-core-1.1.0.rc1 lib/merb-core/test/test_ext/object.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/object.rb
merb-core-1.1.0.pre lib/merb-core/test/test_ext/object.rb
merb-core-1.0.15 lib/merb-core/test/test_ext/object.rb
merb-core-1.0.14 lib/merb-core/test/test_ext/object.rb
merb-core-1.0.13 lib/merb-core/test/test_ext/object.rb
thorero-0.9.4.5 lib/merb-core/test/test_ext/object.rb
merb-core-1.0.12 lib/merb-core/test/test_ext/object.rb