I have been digging through some ruby gem code and i came across these and not sure what they means
def success?
!!@success
end
def failure?
!@success
end
cattr_accessor :test_response
and lastly this chunk of code
class_inheritable_accessor :attributes
self.attributes = []
def self.attribute(name, options={})
top_level_name = name.to_s.split(".").last.underscore
define_method top_level_name do
read_attribute name
end
If you only know one or two thats fine ...i just want to understand them...thanks