Class: Bosh::Template::EvaluationContext::ActiveElseBlock
- Inherits:
-
Object
- Object
- Bosh::Template::EvaluationContext::ActiveElseBlock
- Defined in:
- lib/bosh/template/evaluation_context.rb
Instance Method Summary collapse
- #else ⇒ Object
- #else_if_link(name, &block) ⇒ 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.
197 198 199 |
# File 'lib/bosh/template/evaluation_context.rb', line 197 def initialize(template_context) @context = template_context end |
Instance Method Details
#else ⇒ Object
201 202 203 |
# File 'lib/bosh/template/evaluation_context.rb', line 201 def else yield end |
#else_if_link(name, &block) ⇒ Object
209 210 211 |
# File 'lib/bosh/template/evaluation_context.rb', line 209 def else_if_link(name, &block) @context.if_link(name, &block) end |
#else_if_p(*names, &block) ⇒ Object
205 206 207 |
# File 'lib/bosh/template/evaluation_context.rb', line 205 def else_if_p(*names, &block) @context.if_p(*names, &block) end |