Class: Watobo::XmlParameter

Inherits:
Parameter show all
Defined in:
lib/watobo/core/parameter.rb

Instance Attribute Summary collapse

Attributes inherited from Parameter

#location, #name, #value

Instance Method Summary collapse

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

#namespaceObject (readonly)

Returns the value of attribute namespace.



56
57
58
# File 'lib/watobo/core/parameter.rb', line 56

def namespace
  @namespace
end

#parentObject (readonly)

Returns the value of attribute parent.



55
56
57
# File 'lib/watobo/core/parameter.rb', line 55

def parent
  @parent
end