Class: EAD::EADP

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

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

#valueObject



179
180
181
# File 'lib/EAD.rb', line 179

def value
  self.subelements[0].to_s
end