/usr/lib/ruby/vendor_ruby/merb-core/test/test_ext/object.rb is in ruby-merb-core 1.1.3+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
|