Class: Cyclid::Cli::Formatter::Base
- Inherits:
-
Object
- Object
- Cyclid::Cli::Formatter::Base
- Defined in:
- lib/cyclid/cli/formatter.rb
Overview
Output with no additional formatting
Direct Known Subclasses
Class Method Summary collapse
- .ask(question) ⇒ Object
- .puts(title, *args) ⇒ Object (also: colorize, warning, error)
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 |