class Parser::Source::Map::Constant
Attributes
double_colon[R]
name[R]
operator[R]
Public Class Methods
new(double_colon, name, expression)
click to toggle source
Calls superclass method
Parser::Source::Map::new
# File lib/parser/source/map/constant.rb, line 9 def initialize(double_colon, name, expression) @double_colon, @name = double_colon, name super(expression) end
Public Instance Methods
with_operator(operator_l)
click to toggle source
@api private
# File lib/parser/source/map/constant.rb, line 18 def with_operator(operator_l) with { |map| map.update_operator(operator_l) } end
Protected Instance Methods
update_operator(operator_l)
click to toggle source
# File lib/parser/source/map/constant.rb, line 24 def update_operator(operator_l) @operator = operator_l end