Class: EAD::EADHead
- Inherits:
-
EADElement
- Object
- XMLCodec::XMLElement
- EADElement
- EAD::EADHead
- Defined in:
- lib/EAD.rb
Overview
The class for the ‘head’ 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) ⇒ EADHead
constructor
A new instance of EADHead.
- #value ⇒ Object
Constructor Details
#initialize(string = nil) ⇒ EADHead
Returns a new instance of EADHead.
151 152 153 154 155 |
# File 'lib/EAD.rb', line 151 def initialize(string=nil) if string self.subelements << string end end |
Instance Method Details
#value ⇒ Object
157 158 159 |
# File 'lib/EAD.rb', line 157 def value self.subelements[0].to_s end |