Class: Peachy::Parsers::REXMLAttributeWrapper
- Inherits:
-
ParserWrapper
- Object
- ParserWrapper
- Peachy::Parsers::REXMLAttributeWrapper
- Defined in:
- lib/peachy/parsers/rexml_attribute_wrapper.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(array) ⇒ REXMLAttributeWrapper
constructor
A new instance of REXMLAttributeWrapper.
- #name ⇒ Object
- #to_s ⇒ Object
Methods inherited from ParserWrapper
Constructor Details
#initialize(array) ⇒ REXMLAttributeWrapper
Returns a new instance of REXMLAttributeWrapper.
4 5 6 |
# File 'lib/peachy/parsers/rexml_attribute_wrapper.rb', line 4 def initialize array @attribute = array end |
Instance Method Details
#content ⇒ Object
8 9 10 |
# File 'lib/peachy/parsers/rexml_attribute_wrapper.rb', line 8 def content @attribute.last end |
#name ⇒ Object
12 13 14 |
# File 'lib/peachy/parsers/rexml_attribute_wrapper.rb', line 12 def name @attribute.first end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/peachy/parsers/rexml_attribute_wrapper.rb', line 16 def to_s @attribute.last end |