Class: Simplabs::Excellent::Parsing::IfContext
- Inherits:
-
ConditionalContext
- Object
- SexpContext
- ConditionalContext
- Simplabs::Excellent::Parsing::IfContext
- Defined in:
- lib/simplabs/excellent/parsing/if_context.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from SexpContext
Instance Method Summary collapse
-
#initialize(exp, parent) ⇒ IfContext
constructor
A new instance of IfContext.
- #tests_assignment? ⇒ Boolean
- #tests_parameter? ⇒ Boolean
Methods inherited from SexpContext
Constructor Details
#initialize(exp, parent) ⇒ IfContext
Returns a new instance of IfContext.
11 12 13 14 15 |
# File 'lib/simplabs/excellent/parsing/if_context.rb', line 11 def initialize(exp, parent) super @contains_assignment = has_assignment? @tests_parameter = contains_parameter? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Simplabs::Excellent::Parsing::SexpContext
Instance Method Details
#tests_assignment? ⇒ Boolean
17 18 19 |
# File 'lib/simplabs/excellent/parsing/if_context.rb', line 17 def tests_assignment? @contains_assignment end |
#tests_parameter? ⇒ Boolean
21 22 23 |
# File 'lib/simplabs/excellent/parsing/if_context.rb', line 21 def tests_parameter? @tests_parameter end |