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.
213 214 215 |
# File 'lib/bosh/template/evaluation_context.rb', line 213 def initialize(template_context) @context = template_context end |
Instance Method Details
#else ⇒ Object
217 218 219 |
# File 'lib/bosh/template/evaluation_context.rb', line 217 def else yield end |
#else_if_link(name, &block) ⇒ Object
225 226 227 |
# File 'lib/bosh/template/evaluation_context.rb', line 225 def else_if_link(name, &block) @context.if_link(name, &block) end |
#else_if_p(*names, &block) ⇒ Object
221 222 223 |
# File 'lib/bosh/template/evaluation_context.rb', line 221 def else_if_p(*names, &block) @context.if_p(*names, &block) end |