Class: Parser::Source::Map::Constant
- Inherits:
-
Parser::Source::Map
show all
- Defined in:
- lib/parser/source/map/constant.rb
Instance Attribute Summary (collapse)
#expression, #node
Instance Method Summary
(collapse)
#==, #column, #line, #to_hash
Constructor Details
- (Constant) initialize(double_colon, name, expression)
Returns a new instance of Constant
9
10
11
12
13
|
# File 'lib/parser/source/map/constant.rb', line 9
def initialize(double_colon, name, expression)
@double_colon, @name = double_colon, name
super(expression)
end
|
Instance Attribute Details
- (Object) double_colon
5
6
7
|
# File 'lib/parser/source/map/constant.rb', line 5
def double_colon
@double_colon
end
|
- (Object) name
6
7
8
|
# File 'lib/parser/source/map/constant.rb', line 6
def name
@name
end
|
- (Object) operator
7
8
9
|
# File 'lib/parser/source/map/constant.rb', line 7
def operator
@operator
end
|