Class: Watobo::XmlParameter
- Defined in:
- lib/watobo/core/parameter.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Attributes inherited from Parameter
Instance Method Summary collapse
-
#initialize(prefs) ⇒ XmlParameter
constructor
A new instance of XmlParameter.
Constructor Details
#initialize(prefs) ⇒ XmlParameter
57 58 59 60 61 62 |
# File 'lib/watobo/core/parameter.rb', line 57 def initialize(prefs) super prefs @location = :xml @parent = prefs.has_key?(:parent) ? prefs[:parent] : "" @namespace = prefs.has_key?(:namespace) ? prefs[:namespace] : nil end |
Instance Attribute Details
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
56 57 58 |
# File 'lib/watobo/core/parameter.rb', line 56 def namespace @namespace end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
55 56 57 |
# File 'lib/watobo/core/parameter.rb', line 55 def parent @parent end |