Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.302 kB
module Sample
module HasProps
def add_prop(key, value)
@props = { } unless self.instance_variable_defined?(:@props)
@props[key] = value
end
def props
@props = { } unless self.instance_variable_defined?(:@props)
@props
end
end # HasProps
end # Sample
Jump to Line
Something went wrong with that request. Please try again.