Class: TyranoDsl::ParsedWord

Inherits:
Object
  • Object
show all
Defined in:
lib/tyrano_dsl/parsed_word.rb

Overview

A parsed word

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word, word_location, parameters) ⇒ ParsedWord

Returns a new instance of ParsedWord.

Parameters:

  • word (String)
  • word_location (Array<String>)
  • parameters (Hash)


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

#parametersHash (readonly)

Returns:

  • (Hash)


7
8
9
# File 'lib/tyrano_dsl/parsed_word.rb', line 7

def parameters
  @parameters
end

#wordString (readonly)

Returns:

  • (String)


9
10
11
# File 'lib/tyrano_dsl/parsed_word.rb', line 9

def word
  @word
end

#word_locationArray<String> (readonly)

Returns:

  • (Array<String>)


11
12
13
# File 'lib/tyrano_dsl/parsed_word.rb', line 11

def word_location
  @word_location
end