class Sass::CSS
def properties(rule)
-
rule
(Tree::RuleNode
) -- The parent node of the properties
def properties(rule) while @template.scan(/[^:\}\s]+/) name = @template[0] whitespace assert_match /:/ value = '' while @template.scan(/[^;\s\}]+/) value << @template[0] << whitespace end assert_match /(;|(?=\}))/ rule << Tree::PropNode.new(name, value, nil) end assert_match /\}/ end