Module: Pubid::Parser::CommonParseMethods

Included in:
Ansi::Parser, Idf::Parser, Iec::Parser, Iso::Parser, Jcgm::Parser, Oiml::Parser
Defined in:
lib/pubid/parser/common_parse_methods.rb

Instance Method Summary collapse

Instance Method Details

#array_to_str(array) ⇒ Object



6
7
8
9
10
# File 'lib/pubid/parser/common_parse_methods.rb', line 6

def array_to_str(array)
  array.reduce(str(array.first)) do |acc, value|
    acc | str(value)
  end
end