lib/analyst/entities/root.rb in analyst-0.15.0 vs lib/analyst/entities/root.rb in analyst-0.16.1
- old
+ new
@@ -25,17 +25,21 @@
def origin_source
throw "Entity tree malformed - Source or File hsould have caught this call"
end
- private
+ def inspect
+ "\#<#{self.class}>"
+ end
- attr_reader :source_data
-
def contents
# skip all top-level entities, cuz they're all Files and Sources
@contents ||= actual_contents.map(&:contents).flatten
end
+
+ private
+
+ attr_reader :source_data
def actual_contents
@actual_contents ||= ast.children.map { |child| process_node(child) }
end