Method: CodeBreaker::Parser#run

Defined in:
lib/code_breaker/parser.rb

#runObject Also known as: output



20
21
22
23
24
25
26
27
# File 'lib/code_breaker/parser.rb', line 20

def run
  unless @output
    ast = ::Parser::CurrentRuby.parse(input)
    @output = ast.nil? ? [] : parse(ast.loc.node)
  end

  @output
end