lib/rubyoshka/renderer.rb
# Sets a local context for the given block
# @param ctx [Hash] context hash
# @param block [Proc] nested HTML block
# @return [void]
Sets a local context for the given block
Sets a local context for the given block
def with(**ctx, &block)
      old_local, @local = @local, ctx
      instance_eval(&block)
    ensure
      @local = old_local
    end
def with ( ** ctx , & block ) old_local , @local = @local , ctx instance_eval ( & block ) ensure @local = old_local end
Sets a local context for the given block
Sets a local context for the given block
None
void
ctx
None
block
nested HTML block
nested HTML block