Class: Srgs::Token
- Inherits:
-
Object
- Object
- Srgs::Token
- Defined in:
- lib/srgs/elements/token.rb
Instance Attribute Summary collapse
-
#display ⇒ Object
Returns the value of attribute display.
-
#pron ⇒ Object
Returns the value of attribute pron.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, display = nil, pron = nil) ⇒ Token
constructor
A new instance of Token.
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
#display ⇒ Object
Returns the value of attribute display.
4 5 6 |
# File 'lib/srgs/elements/token.rb', line 4 def display @display end |
#pron ⇒ Object
Returns the value of attribute pron.
4 5 6 |
# File 'lib/srgs/elements/token.rb', line 4 def pron @pron end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/srgs/elements/token.rb', line 4 def text @text end |