lib/sass/tree/rule_node.rb in sass-3.2.0.alpha.9 vs lib/sass/tree/rule_node.rb in sass-3.2.0.alpha.11
- old
+ new
@@ -113,9 +113,14 @@
def debug_info
{:filename => filename && ("file://" + URI.escape(File.expand_path(filename))),
:line => self.line}
end
+ # Returns sub nodes that are not tree children.
+ def subnodes
+ rule.select{|r| r.is_a?(Sass::Script::Node)}
+ end
+
private
def try_to_parse_non_interpolated_rules
if @rule.all? {|t| t.kind_of?(String)}
# We don't use real filename/line info because we don't have it yet.