Class: Pubid::Core::Parser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/pubid/core/parser.rb

Instance Method Summary collapse

Instance Method Details

#array_to_str(array) ⇒ Object



45
46
47
48
49
# File 'lib/pubid/core/parser.rb', line 45

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