Parent

Files

CSSPool::Visitors::Visitor

Public Class Methods

visitor_for(*klasses, &block) click to toggle source

(Not documented)

# File lib/csspool/visitors/visitor.rb, line 4
      def self.visitor_for *klasses, &block
        klasses.each do |klass|
          method_name = klass.name.split('::').join('_')
          define_method(:"visit_#{method_name}", block)
        end
      end

Public Instance Methods

accept(target) click to toggle source

(Not documented)

# File lib/csspool/visitors/visitor.rb, line 11
      def accept target
        method_name = target.class.name.split('::').join('_')
        send(:"visit_#{method_name}", target)
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.