Class: JsonInference::Report
- Inherits:
-
Object
- Object
- JsonInference::Report
- Defined in:
- lib/json-inference.rb
Instance Method Summary collapse
- #<<(document) ⇒ Object
-
#initialize ⇒ Report
constructor
A new instance of Report.
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#<<(document) ⇒ Object
16 17 18 19 |
# File 'lib/json-inference.rb', line 16 def <<(document) @documents << document @root << document end |
#to_s ⇒ Object
21 22 23 24 25 |
# File 'lib/json-inference.rb', line 21 def to_s str = "JsonInference report: #{@documents.size} documents\n" str << @root.to_s(@documents.size) str end |