class Haml::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, &block)

Returns:
  • (Boolean) -

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