Class: Code::Parser::ChainedCall

Inherits:
LeftOperation show all
Defined in:
lib/code/parser/chained_call.rb

Instance Method Summary collapse

Methods inherited from LeftOperation

#root, #whitespace, #whitespace?

Instance Method Details

#ampersandObject



14
15
16
# File 'lib/code/parser/chained_call.rb', line 14

def ampersand
  str("&")
end

#colonObject



18
19
20
# File 'lib/code/parser/chained_call.rb', line 18

def colon
  str(":")
end

#dotObject



10
11
12
# File 'lib/code/parser/chained_call.rb', line 10

def dot
  str(".")
end

#operatorObject



26
27
28
# File 'lib/code/parser/chained_call.rb', line 26

def operator
  dot | (colon << colon) | (ampersand << dot)
end

#right_statementObject



22
23
24
# File 'lib/code/parser/chained_call.rb', line 22

def right_statement
  ChainedCall
end

#statementObject



6
7
8
# File 'lib/code/parser/chained_call.rb', line 6

def statement
  SquareBracket
end