class Sass::Util::StaticConditionalContext
The context in which the ERB for {#def_static_method} will be run.
Public Class Methods
Source
# File lib/sass/util.rb, line 1026 def initialize(set) @set = set end
@param set [#include?] The set of variables that are defined for this context.
Public Instance Methods
Source
# File lib/sass/util.rb, line 1034 def method_missing(name, *args) super unless args.empty? && !block_given? @set.include?(name) end
Checks whether or not a variable is defined for this context.
@param name [Symbol] The name of the variable @return [Boolean]
Calls superclass method