Method: CodeWeb::CodeParser#handle_method_call
- Defined in:
- lib/code_web/code_parser.rb
#handle_method_call(ast, is_yield = false) ⇒ Object
93 94 95 96 97 98 99 100 |
# File 'lib/code_web/code_parser.rb', line 93 def handle_method_call(ast, is_yield=false) method_name = method_name_from_ast(ast[1..2]) args = ast[3..-1].map {|arg| collapse_ast(arg,1)} mc = MethodCall.new(ast.file, ast.line, method_name, args, is_yield) method_cache << mc puts mc.to_s(spaces) if debug? # && method_cache.detect?(mc) end |