Class: EAD::EADUnitTitle
- Inherits:
-
EADElement
- Object
- XMLCodec::XMLElement
- EADElement
- EAD::EADUnitTitle
- Defined in:
- lib/EAD.rb
Instance Method Summary collapse
-
#initialize(string = nil) ⇒ EADUnitTitle
constructor
A new instance of EADUnitTitle.
- #value ⇒ Object
Constructor Details
#initialize(string = nil) ⇒ EADUnitTitle
Returns a new instance of EADUnitTitle.
102 103 104 105 106 |
# File 'lib/EAD.rb', line 102 def initialize(string=nil) if string self.subelements << string end end |
Instance Method Details
#value ⇒ Object
108 109 110 |
# File 'lib/EAD.rb', line 108 def value self.subelements[0].to_s end |