Class: Generated::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_grammar_builder/generated/rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location) ⇒ Rule

Returns a new instance of Rule.



8
9
10
# File 'lib/ruby_grammar_builder/generated/rule.rb', line 8

def initialize(location)
    @location = location
end

Instance Attribute Details

#locationString

Returns The location of this rule.

Returns:

  • (String)

    The location of this rule



6
7
8
# File 'lib/ruby_grammar_builder/generated/rule.rb', line 6

def location
  @location
end