Methods

Class/Module Index [+]

Quicksearch

Sass::ReadOnlyEnvironment

A read-only wrapper for a lexical environment for SassScript.

Public Instance Methods

caller() click to toggle source

The read-only environment of the caller of this environment’s mixin or function.

@see BaseEnvironment#caller @return {ReadOnlyEnvironment}

# File lib/sass/environment.rb, line 179
def caller
  return @caller if @caller
  env = super
  @caller ||= env.is_a?(ReadOnlyEnvironment) ? env : ReadOnlyEnvironment.new(env, env.options)
end
content() click to toggle source

The read-only content passed to this environment.

@see BaseEnvironment#content @return {ReadOnlyEnvironment}

# File lib/sass/environment.rb, line 189
def content
  return @content if @content
  env = super
  @content ||= env.is_a?(ReadOnlyEnvironment) ? env : ReadOnlyEnvironment.new(env, env.options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.