Class: Simplabs::Excellent::Parsing::ResbodyContext
- Inherits:
-
SexpContext
- Object
- SexpContext
- Simplabs::Excellent::Parsing::ResbodyContext
- Defined in:
- lib/simplabs/excellent/parsing/resbody_context.rb
Overview
:nodoc:
Constant Summary collapse
- STATEMENT_NODES =
[:fcall, :return, :attrasgn, :vcall, :call, :str, :lit, :hash, :false, :true, :nil]
Instance Attribute Summary
Attributes inherited from SexpContext
Instance Method Summary collapse
- #has_statements? ⇒ Boolean
-
#initialize(exp, parent) ⇒ ResbodyContext
constructor
A new instance of ResbodyContext.
Methods inherited from SexpContext
Constructor Details
#initialize(exp, parent) ⇒ ResbodyContext
Returns a new instance of ResbodyContext.
11 12 13 14 |
# File 'lib/simplabs/excellent/parsing/resbody_context.rb', line 11 def initialize(exp, parent) super @contains_statements = contains_statements? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Simplabs::Excellent::Parsing::SexpContext
Instance Method Details
#has_statements? ⇒ Boolean
16 17 18 |
# File 'lib/simplabs/excellent/parsing/resbody_context.rb', line 16 def has_statements? @contains_statements end |