Parent

Included Modules

CSSPool::Node

Public Instance Methods

==(other) click to toggle source
# File lib/csspool/node.rb, line 22
def == other
  return false unless self.class == other.class

  accept Visitors::Comparable.new other
end
Also aliased as: eql?
accept(target) click to toggle source
# File lib/csspool/node.rb, line 5
def accept target
  target.accept self
end
children() click to toggle source
# File lib/csspool/node.rb, line 33
def children
  accept Visitors::Children.new
end
each(&block) click to toggle source
# File lib/csspool/node.rb, line 29
def each &block
  Visitors::Iterator.new(block).accept self
end
eql?(other) click to toggle source
Alias for: ==
hash() click to toggle source
# File lib/csspool/node.rb, line 37
def hash
  @hash ||= children.map { |child| child.hash }.hash
end
to_css(options={}) click to toggle source
# File lib/csspool/node.rb, line 9
def to_css options={}
  if options[:minify]
    to_minified_css
  else
    accept Visitors::ToCSS.new
  end
end
Also aliased as: to_s
to_minified_css() click to toggle source
# File lib/csspool/node.rb, line 18
def to_minified_css
  accept Visitors::ToMinifiedCSS.new
end
to_s(options={}) click to toggle source
Alias for: to_css

[Validate]

Generated with the Darkfish Rdoc Generator 2.