Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (10 sloc) 0.245 kB
class Object
# Checks that an object has assigned an instance variable of name
# :name
#
# ===Example in a spec
# @my_obj.assings(:my_value).should == @my_value
def assigns(attr)
self.instance_variable_get("@#{attr}")
end
end
Jump to Line
Something went wrong with that request. Please try again.