Class: EAD::EADP
- Inherits:
-
EADElement
- Object
- XMLCodec::XMLElement
- EADElement
- EAD::EADP
- Defined in:
- lib/EAD.rb
Overview
The class for the āpā element. For convenience it can be initialized with a string value that is used as the first subelement.
Instance Method Summary collapse
-
#initialize(string = nil) ⇒ EADP
constructor
A new instance of EADP.
- #value ⇒ Object
Constructor Details
#initialize(string = nil) ⇒ EADP
Returns a new instance of EADP.
173 174 175 176 177 |
# File 'lib/EAD.rb', line 173 def initialize(string=nil) if string self.subelements << string end end |
Instance Method Details
#value ⇒ Object
179 180 181 |
# File 'lib/EAD.rb', line 179 def value self.subelements[0].to_s end |