Class: OptionalGroup

Inherits:
Group
  • Object
show all
Defined in:
lib/ez7gen/structure_parser.rb

Constant Summary

Constants included from Utils

Utils::BASE, Utils::BASE_INDICATOR, Utils::DATA_LOOKUP_MIS, Utils::PRIMARY

Instance Method Summary collapse

Methods inherited from Group

#initialize, #resolve, #unwrap

Methods included from Utils

#blank?, #get_name_without_base, #get_segment_name, #get_type_by_name, #has_html_encoded_ch?, #is_number?, #num_to_nil, #safe_len, #sample_index

Constructor Details

This class inherits a constructor from Group

Instance Method Details

#mark(group, prnths = StructureParser::PRNTHS_OP) ⇒ Object



229
230
231
232
233
234
235
# File 'lib/ez7gen/structure_parser.rb', line 229

def mark(group, prnths=StructureParser::PRNTHS_OP)
  if (group.kind_of?(String))
    group = Marker.mark(group, prnths)
  elsif(group.kind_of?(Array))
    group = OptionalGroup.new(group)
  end
end