Class: Peachy::Parsers::REXMLAttributeWrapper

Inherits:
ParserWrapper show all
Defined in:
lib/peachy/parsers/rexml_attribute_wrapper.rb

Instance Method Summary collapse

Methods inherited from ParserWrapper

#create_from_element

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

#contentObject



8
9
10
# File 'lib/peachy/parsers/rexml_attribute_wrapper.rb', line 8

def content
  @attribute.last
end

#nameObject



12
13
14
# File 'lib/peachy/parsers/rexml_attribute_wrapper.rb', line 12

def name
  @attribute.first
end

#to_sObject



16
17
18
# File 'lib/peachy/parsers/rexml_attribute_wrapper.rb', line 16

def to_s
  @attribute.last
end