In Files

Parent

Class Index [+]

Quicksearch

StaticConditionalContext

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

Public Class Methods

new(set) click to toggle source

@param set [#] The set of variables that are defined for this context.

     # File lib/haml/util.rb, line 626
626:       def initialize(set)
627:         @set = set
628:       end

Public Instance Methods

method_missing(name, *args, &block) click to toggle source

Checks whether or not a variable is defined for this context.

@param name [Symbol] The name of the variable @return [Boolean]

     # File lib/haml/util.rb, line 634
634:       def method_missing(name, *args, &block)
635:         super unless args.empty? && block.nil?
636:         @set.include?(name)
637:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.