1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/lib/sass/tree/node.rb
nex3 015a1b191d A more object-oriented way of parsing Sass.
git-svn-id: svn://hamptoncatlin.com/haml/branches/1.5dev@195 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-04 08:40:23 +00:00

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