Class: Parser::Source::Map::Constant

Inherits:
Parser::Source::Map show all
Defined in:
lib/parser/source/map/constant.rb

Instance Attribute Summary (collapse)

Attributes inherited from Parser::Source::Map

#expression, #node

Instance Method Summary (collapse)

Methods inherited from Parser::Source::Map

#==, #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 (readonly)



5
6
7
# File 'lib/parser/source/map/constant.rb', line 5

def double_colon
  @double_colon
end

- (Object) name (readonly)



6
7
8
# File 'lib/parser/source/map/constant.rb', line 6

def name
  @name
end

- (Object) operator (readonly)



7
8
9
# File 'lib/parser/source/map/constant.rb', line 7

def operator
  @operator
end