Class: ActionviewPrecompiler::RipperASTParser::RenderCallParser

Inherits:
NodeParser
  • Object
show all
Defined in:
lib/actionview_precompiler/ast_parser/ripper.rb

Constant Summary collapse

METHODS_TO_PARSE =
%w(render render_to_string layout)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ RenderCallParser

Returns a new instance of RenderCallParser.



156
157
158
159
160
# File 'lib/actionview_precompiler/ast_parser/ripper.rb', line 156

def initialize(*args)
  super

  @render_calls = []
end

Instance Attribute Details

#render_callsObject (readonly)

Returns the value of attribute render_calls.



152
153
154
# File 'lib/actionview_precompiler/ast_parser/ripper.rb', line 152

def render_calls
  @render_calls
end