Class: Srgs::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/srgs/elements/token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, display = nil, pron = nil) ⇒ Token

Returns a new instance of Token.



6
7
8
9
10
# File 'lib/srgs/elements/token.rb', line 6

def initialize(text, display = nil, pron = nil)
  @text = text
  @display = display
  @pron = pron
end

Instance Attribute Details

#displayObject

Returns the value of attribute display.



4
5
6
# File 'lib/srgs/elements/token.rb', line 4

def display
  @display
end

#pronObject

Returns the value of attribute pron.



4
5
6
# File 'lib/srgs/elements/token.rb', line 4

def pron
  @pron
end

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/srgs/elements/token.rb', line 4

def text
  @text
end