lib/crass/parser.rb in crass-1.0.2 vs lib/crass/parser.rb in crass-1.0.3

- old
+ new

@@ -71,11 +71,11 @@ # # * **:exclude_comments** - When `true`, comments will be excluded. # def self.stringify(nodes, options = {}) nodes = [nodes] unless nodes.is_a?(Array) - string = '' + string = String.new nodes.each do |node| next if node.nil? case node[:node] @@ -612,10 +612,10 @@ end # Returns the unescaped value of a selector name or property declaration. def parse_value(nodes) nodes = [nodes] unless nodes.is_a?(Array) - string = '' + string = String.new nodes.each do |node| case node[:node] when :comment, :semicolon next