Class: Srgs::Grammar
- Inherits:
-
Object
- Object
- Srgs::Grammar
- Defined in:
- lib/srgs/elements/grammar.rb
Instance Attribute Summary collapse
-
#current_level ⇒ Object
Returns the value of attribute current_level.
-
#lexicon ⇒ Object
Returns the value of attribute lexicon.
-
#metas ⇒ Object
Returns the value of attribute metas.
-
#root ⇒ Object
Returns the value of attribute root.
-
#rules ⇒ Object
Returns the value of attribute rules.
Instance Method Summary collapse
- #<<(element) ⇒ Object
-
#initialize(root = '') ⇒ Grammar
constructor
A new instance of Grammar.
Constructor Details
Instance Attribute Details
#current_level ⇒ Object
Returns the value of attribute current_level.
4 5 6 |
# File 'lib/srgs/elements/grammar.rb', line 4 def current_level @current_level end |
#lexicon ⇒ Object
Returns the value of attribute lexicon.
4 5 6 |
# File 'lib/srgs/elements/grammar.rb', line 4 def lexicon @lexicon end |
#metas ⇒ Object
Returns the value of attribute metas.
4 5 6 |
# File 'lib/srgs/elements/grammar.rb', line 4 def @metas end |
#root ⇒ Object
Returns the value of attribute root.
4 5 6 |
# File 'lib/srgs/elements/grammar.rb', line 4 def root @root end |
#rules ⇒ Object
Returns the value of attribute rules.
4 5 6 |
# File 'lib/srgs/elements/grammar.rb', line 4 def rules @rules end |