Module: EADCodec::WithParagraphs
- Defined in:
- lib/eadcodec.rb
Overview
Module included in classes that have paragraphs as subelements
Instance Method Summary collapse
Instance Method Details
#initialize(value = nil) ⇒ Object
51 52 53 54 55 |
# File 'lib/eadcodec.rb', line 51 def initialize(value=nil) value = [] if not value value = [value] if not value.is_a? Array value.each{|v| self << P.new(v)} end |