Class: Prosereflect::Attribute::Href
- Defined in:
- lib/prosereflect/attribute/href.rb
Constant Summary collapse
- PM_TYPE =
'href'
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Href
constructor
A new instance of Href.
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ Href
Returns a new instance of Href.
13 14 15 16 17 18 19 20 21 |
# File 'lib/prosereflect/attribute/href.rb', line 13 def initialize( = {}) if .is_a?(String) super() self.value = else super self.value = [:href] if [:href] end end |