Class: Bundleup::Report
- Inherits:
-
Object
- Object
- Bundleup::Report
- Extended by:
- Forwardable
- Defined in:
- lib/bundleup/report.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#many? ⇒ Boolean
9 10 11 |
# File 'lib/bundleup/report.rb', line 9 def many? rows.length > 1 end |
#to_s ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/bundleup/report.rb', line 13 def to_s [ title, tableize(rows).map { |row| row.join(" ").rstrip }.join("\n"), "" ].join("\n\n") end |