Class: Cyclid::Cli::Formatter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cyclid/cli/formatter.rb

Overview

Output with no additional formatting

Direct Known Subclasses

Terminal

Class Method Summary collapse

Class Method Details

.ask(question) ⇒ Object



38
39
40
# File 'lib/cyclid/cli/formatter.rb', line 38

def ask(question)
  print "#{question}: "
end

.puts(title, *args) ⇒ Object Also known as: colorize, warning, error



26
27
28
29
30
31
32
33
# File 'lib/cyclid/cli/formatter.rb', line 26

def puts(title, *args)
  t = if args.empty?
        title
      else
        "#{title}: "
      end
  Kernel.puts t + args.join
end