class ActionView::RenderParser::RipperASTParser::RenderCallExtractor
:nodoc:
def initialize(*args)
def initialize(*args) super @render_calls = [] end
def on_arg_paren(content)
def on_arg_paren(content) content end
def on_command(name, *args)
def on_command(name, *args) on_render_call(super) end
def on_fcall(name, *args)
def on_fcall(name, *args) on_render_call(super) end
def on_paren(content)
def on_paren(content) content end
def on_render_call(node)
def on_render_call(node) METHODS_TO_PARSE.each do |method| if node.fcall_named?(method) @render_calls << [method, node] return node end end node end