Class: Interrotron::Token
- Inherits:
-
Object
- Object
- Interrotron::Token
- Defined in:
- lib/interrotron.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(type, value) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(type, value) ⇒ Token
Returns a new instance of Token.
40 41 42 43 |
# File 'lib/interrotron.rb', line 40 def initialize(type,value) @type = type @value = value end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
39 40 41 |
# File 'lib/interrotron.rb', line 39 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
39 40 41 |
# File 'lib/interrotron.rb', line 39 def value @value end |