Class: Bosh::Common::TemplateEvaluationContext::ActiveElseBlock
- Inherits:
-
Object
- Object
- Bosh::Common::TemplateEvaluationContext::ActiveElseBlock
- Defined in:
- lib/common/properties/template_evaluation_context.rb
Instance Method Summary collapse
- #else ⇒ Object
- #else_if_p(*names, &block) ⇒ Object
-
#initialize(template_context) ⇒ ActiveElseBlock
constructor
A new instance of ActiveElseBlock.
Constructor Details
#initialize(template_context) ⇒ ActiveElseBlock
Returns a new instance of ActiveElseBlock.
118 119 120 |
# File 'lib/common/properties/template_evaluation_context.rb', line 118 def initialize(template_context) @context = template_context end |
Instance Method Details
#else ⇒ Object
122 123 124 |
# File 'lib/common/properties/template_evaluation_context.rb', line 122 def else yield end |
#else_if_p(*names, &block) ⇒ Object
126 127 128 |
# File 'lib/common/properties/template_evaluation_context.rb', line 126 def else_if_p(*names, &block) @context.if_p(*names, &block) end |