Class: AjLisp::Token
- Inherits:
-
Object
- Object
- AjLisp::Token
- Defined in:
- lib/ajlisp/token.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, type) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(value, type) ⇒ Token
Returns a new instance of Token.
8 9 10 11 |
# File 'lib/ajlisp/token.rb', line 8 def initialize(value, type) @value = value @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/ajlisp/token.rb', line 6 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/ajlisp/token.rb', line 5 def value @value end |