Class: Parslet::Atoms::Sequence

Inherits:
Object
  • Object
show all
Defined in:
lib/parslet-export/atoms/sequence.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



4
5
6
7
8
9
# File 'lib/parslet-export/atoms/sequence.rb', line 4

def to_hash
  {
    "atom" => "sequence",
    "parslets" => parslets.map(&:to_hash)
  }
end