Class: JSGF::Repetition

Inherits:
Object
  • Object
show all
Defined in:
lib/jsgf/repetition.rb

Instance Method Summary collapse

Constructor Details

#initialize(atom, minimum_count) ⇒ Repetition

Returns a new instance of Repetition.

Parameters:

  • atom (Hash)

    the atom to repeat

  • minimum_count (Number)

    the minimum repetition count (0 or 1)



5
6
7
8
# File 'lib/jsgf/repetition.rb', line 5

def initialize(atom, minimum_count)
    @atom = atom
    @count = minimum_count
end