Class: RailsOpenapiGen::Parsers::TemplateProcessors::JbuilderTemplateProcessor::JbuilderPathProcessor
- Inherits:
-
Parser::AST::Processor
- Object
- Parser::AST::Processor
- RailsOpenapiGen::Parsers::TemplateProcessors::JbuilderTemplateProcessor::JbuilderPathProcessor
- Defined in:
- lib/rails-openapi-gen/parsers/template_processors/jbuilder_template_processor.rb
Instance Attribute Summary collapse
-
#jbuilder_path ⇒ Object
readonly
Returns the value of attribute jbuilder_path.
Instance Method Summary collapse
-
#initialize(controller, action) ⇒ JbuilderPathProcessor
constructor
A new instance of JbuilderPathProcessor.
- #on_send(node) ⇒ Object
Constructor Details
#initialize(controller, action) ⇒ JbuilderPathProcessor
Returns a new instance of JbuilderPathProcessor.
31 32 33 34 35 36 |
# File 'lib/rails-openapi-gen/parsers/template_processors/jbuilder_template_processor.rb', line 31 def initialize(controller, action) super() @controller = controller @action = action @jbuilder_path = nil end |
Instance Attribute Details
#jbuilder_path ⇒ Object (readonly)
Returns the value of attribute jbuilder_path.
29 30 31 |
# File 'lib/rails-openapi-gen/parsers/template_processors/jbuilder_template_processor.rb', line 29 def jbuilder_path @jbuilder_path end |
Instance Method Details
#on_send(node) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/rails-openapi-gen/parsers/template_processors/jbuilder_template_processor.rb', line 38 def on_send(node) if render_call?(node) && @jbuilder_path.nil? extract_render_target(node) end super end |