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.



121
122
123
# File 'lib/bosh/template/evaluation_context.rb', line 121

def initialize(template_context)
  @context = template_context
end

Instance Method Details

#elseObject



125
126
127
# File 'lib/bosh/template/evaluation_context.rb', line 125

def else
  yield
end

#else_if_p(*names, &block) ⇒ Object



129
130
131
# File 'lib/bosh/template/evaluation_context.rb', line 129

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