Class: Bosh::Template::EvaluationContext::ActiveElseBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/template/evaluation_context.rb

Instance Method Summary collapse

Constructor Details

#initialize(template_context) ⇒ ActiveElseBlock

Returns a new instance of ActiveElseBlock.



170
171
172
# File 'lib/bosh/template/evaluation_context.rb', line 170

def initialize(template_context)
  @context = template_context
end

Instance Method Details

#elseObject



174
175
176
# File 'lib/bosh/template/evaluation_context.rb', line 174

def else
  yield
end


182
183
184
# File 'lib/bosh/template/evaluation_context.rb', line 182

def else_if_link(name, &block)
  @context.if_link(name, &block)
end

#else_if_p(*names, &block) ⇒ Object



178
179
180
# File 'lib/bosh/template/evaluation_context.rb', line 178

def else_if_p(*names, &block)
  @context.if_p(*names, &block)
end