Class: ActionviewPrecompiler::RipperASTParser::RenderCallParser
- Inherits:
-
NodeParser
- Object
- Ripper
- NodeParser
- ActionviewPrecompiler::RipperASTParser::RenderCallParser
- 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
-
#render_calls ⇒ Object
readonly
Returns the value of attribute render_calls.
Instance Method Summary collapse
-
#initialize(*args) ⇒ RenderCallParser
constructor
A new instance of RenderCallParser.
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_calls ⇒ Object (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 |