Class: EAD::EADHead

Inherits:
EADElement
  • Object
show all
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

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

#valueObject



157
158
159
# File 'lib/EAD.rb', line 157

def value
  self.subelements[0].to_s
end