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

Instance Method Details

#ampersandObject



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

def ampersand
  str("&")
end

#colonObject



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

def colon
  str(":")
end

#dotObject



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

def dot
  str(".")
end

#operatorObject



30
31
32
# File 'lib/code/parser/chained_call.rb', line 30

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

#statementObject



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

def statement
  SquareBracket
end

#whitespaceObject



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

def whitespace
  Whitespace
end

#whitespace?Boolean

Returns:



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

def whitespace?
  whitespace.maybe
end