Class: Parser::Source::Map::Ternary

Inherits:
Parser::Source::Map show all
Defined in:
lib/parser/source/map/ternary.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

- (Ternary) initialize(question_l, colon_l, expression_l)

Returns a new instance of Ternary



8
9
10
11
12
# File 'lib/parser/source/map/ternary.rb', line 8

def initialize(question_l, colon_l, expression_l)
  @question, @colon = question_l, colon_l

  super(expression_l)
end

Instance Attribute Details

- (Object) colon (readonly)



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

def colon
  @colon
end

- (Object) question (readonly)



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

def question
  @question
end