Class: SAXMachine::SAXConfig::AttributeConfig
Instance Attribute Summary
#data_class, #name, #setter
Instance Method Summary
collapse
#column, #initialize, #required?
Instance Method Details
#attrs_match?(attrs) ⇒ Boolean
Also known as:
has_value_and_attrs_match?
8
9
10
|
# File 'lib/sax-machine/config/sax_attribute.rb', line 8
def attrs_match?(attrs)
attrs.key?(@name) || attrs.value?(@name)
end
|
#collection? ⇒ Boolean
13
14
15
|
# File 'lib/sax-machine/config/sax_attribute.rb', line 13
def collection?
false
end
|
#value_from_attrs(attrs) ⇒ Object
4
5
6
|
# File 'lib/sax-machine/config/sax_attribute.rb', line 4
def value_from_attrs(attrs)
attrs.fetch(@name, nil)
end
|