Class: Circler::ProjectPrinter
- Inherits:
-
Object
- Object
- Circler::ProjectPrinter
- Defined in:
- lib/circler/printer/project_printer.rb
Instance Attribute Summary collapse
-
#compact ⇒ Object
Returns the value of attribute compact.
Instance Method Summary collapse
-
#initialize(projects, pretty: true) ⇒ ProjectPrinter
constructor
A new instance of ProjectPrinter.
- #to_s ⇒ Object
Constructor Details
#initialize(projects, pretty: true) ⇒ ProjectPrinter
Returns a new instance of ProjectPrinter.
6 7 8 9 |
# File 'lib/circler/printer/project_printer.rb', line 6 def initialize(projects, pretty: true) @projects = projects @pretty = pretty end |
Instance Attribute Details
#compact ⇒ Object
Returns the value of attribute compact.
5 6 7 |
# File 'lib/circler/printer/project_printer.rb', line 5 def compact @compact end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/circler/printer/project_printer.rb', line 11 def to_s @pretty ? print_pretty : print_compact end |