Class: ActionView::RenderParser::RipperASTParser::RenderCallExtractor

Inherits:
NodeParser
  • Object
show all
Defined in:
lib/action_view/ripper_ast_parser.rb

Overview

:nodoc:

Constant Summary collapse

METHODS_TO_PARSE =
%w(render render_to_string)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ RenderCallExtractor

Returns a new instance of RenderCallExtractor.



152
153
154
155
156
# File 'lib/action_view/ripper_ast_parser.rb', line 152

def initialize(*args)
  super

  @render_calls = []
end

Instance Attribute Details

#render_callsObject (readonly)

Returns the value of attribute render_calls.



148
149
150
# File 'lib/action_view/ripper_ast_parser.rb', line 148

def render_calls
  @render_calls
end