Method: Sequitur::Production#to_string

Defined in:
lib/sequitur/production.rb

#to_stringString

Emit a text representation of the production rule. Text is of the form: object id of production : rhs as space-separated sequence of symbols.

Returns:

  • (String)


122
123
124
# File 'lib/sequitur/production.rb', line 122

def to_string
  return "#{object_id} : #{rhs.to_string}."
end