class Sass::Tree::Visitors::Perform

def with_environment(env)

Returns:
  • (Object) - The return value of the block.

Other tags:
    Yield: - A block in which the environment is set to `env`.

Parameters:
  • env (Sass::Environment) -- The new environment for the duration of the block.
def with_environment(env)
  old_env, @environment = @environment, env
  yield
ensure
  @environment = old_env
end