Class: Bool::Token
- Inherits:
-
Object
- Object
- Bool::Token
- Defined in:
- lib/bool/ast.rb,
ext/bool_ext/ext.c
Overview
AST classes defined in bool_ext.jar
Instance Attribute Summary collapse
-
#first_column ⇒ Object
readonly
Returns the value of attribute first_column.
-
#first_line ⇒ Object
readonly
Returns the value of attribute first_line.
-
#last_column ⇒ Object
readonly
Returns the value of attribute last_column.
-
#last_line ⇒ Object
readonly
Returns the value of attribute last_line.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, first_line, last_line, first_column, last_column) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(value, first_line, last_line, first_column, last_column) ⇒ Token
Returns a new instance of Token.
8 9 10 |
# File 'lib/bool/ast.rb', line 8 def initialize(value, first_line, last_line, first_column, last_column) @value, @first_line, @last_line, @first_column, @last_column = value, first_line, last_line, first_column, last_column end |
Instance Attribute Details
#first_column ⇒ Object (readonly)
Returns the value of attribute first_column.
6 7 8 |
# File 'lib/bool/ast.rb', line 6 def first_column @first_column end |
#first_line ⇒ Object (readonly)
Returns the value of attribute first_line.
6 7 8 |
# File 'lib/bool/ast.rb', line 6 def first_line @first_line end |
#last_column ⇒ Object (readonly)
Returns the value of attribute last_column.
6 7 8 |
# File 'lib/bool/ast.rb', line 6 def last_column @last_column end |
#last_line ⇒ Object (readonly)
Returns the value of attribute last_line.
6 7 8 |
# File 'lib/bool/ast.rb', line 6 def last_line @last_line end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/bool/ast.rb', line 6 def value @value end |