Class: Parslet::Atoms::Repetition

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

Instance Method Summary collapse

Instance Method Details

#to_hashObject



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

def to_hash
  {
    "atom" => "repetition",
    "min" => min,
    "max" => max,
    "parslet" => parslet.to_hash
  }
end