Class: TyranoDsl::ParsedWord
- Inherits:
-
Object
- Object
- TyranoDsl::ParsedWord
- Defined in:
- lib/tyrano_dsl/parsed_word.rb
Overview
A parsed word
Instance Attribute Summary collapse
- #parameters ⇒ Hash readonly
- #word ⇒ String readonly
- #word_location ⇒ Array<String> readonly
Instance Method Summary collapse
-
#initialize(word, word_location, parameters) ⇒ ParsedWord
constructor
A new instance of ParsedWord.
Constructor Details
#initialize(word, word_location, parameters) ⇒ ParsedWord
Returns a new instance of ParsedWord.
16 17 18 19 20 |
# File 'lib/tyrano_dsl/parsed_word.rb', line 16 def initialize(word, word_location, parameters) @word = word @word_location = word_location @parameters = parameters end |
Instance Attribute Details
#parameters ⇒ Hash (readonly)
7 8 9 |
# File 'lib/tyrano_dsl/parsed_word.rb', line 7 def parameters @parameters end |
#word ⇒ String (readonly)
9 10 11 |
# File 'lib/tyrano_dsl/parsed_word.rb', line 9 def word @word end |
#word_location ⇒ Array<String> (readonly)
11 12 13 |
# File 'lib/tyrano_dsl/parsed_word.rb', line 11 def word_location @word_location end |