Class: Circler::ProjectPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/circler/printer/project_printer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#compactObject

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_sObject



11
12
13
# File 'lib/circler/printer/project_printer.rb', line 11

def to_s
  @pretty ? print_pretty : print_compact
end