class Sass::Util::StaticConditionalContext

The context in which the ERB for {#def_static_method} will be run.

def initialize(set)

Parameters:
  • set (#include?) -- The set of variables that are defined for this context.
def initialize(set)
  @set = set
end

def method_missing(name, *args)

Returns:
  • (Boolean) -

Parameters:
  • name (Symbol) -- The name of the variable
def method_missing(name, *args)
  super unless args.empty? && !block_given?
  @set.include?(name)
end