class Subconv::ColorNode

Color style node

Attributes

color[RW]

Public Class Methods

new(color, children = []) click to toggle source

Color should be given as symbol, e.g. :white, :red, :blue, …

Calls superclass method Subconv::ContainerNode::new
# File lib/subconv/caption.rb, line 82
def initialize(color, children = [])
  super children
  @color = color
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method Subconv::ContainerNode#==
# File lib/subconv/caption.rb, line 87
def ==(other)
  super(other) && @color == other.color
end