mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00

git-svn-id: svn://hamptoncatlin.com/haml/branches/1.5dev@195 7063305b-7217-0410-af8c-cdc13e5119b9
24 lines
394 B
Ruby
24 lines
394 B
Ruby
module Sass
|
|
module Tree
|
|
class Node
|
|
attr_reader :children
|
|
attr_writer :children
|
|
|
|
def initialize
|
|
@children = []
|
|
end
|
|
|
|
def <<(child)
|
|
@children << child
|
|
end
|
|
|
|
def to_s
|
|
result = String.new
|
|
children.each do |child|
|
|
result += "#{child.to_s}\n"
|
|
end
|
|
result[0...-1]
|
|
end
|
|
end
|
|
end
|
|
end
|