Module: MGit::Output
- Included in:
- CLI, Command, Repository, System::SystemCommand
- Defined in:
- lib/mgit/output.rb
Defined Under Namespace
Classes: TableOutputter
Instance Method Summary collapse
- #perror(s) ⇒ Object
- #pinfo(s) ⇒ Object
- #psystem(s) ⇒ Object
- #ptable(table, options = {}) ⇒ Object
- #pwarn(s) ⇒ Object
Instance Method Details
#perror(s) ⇒ Object
15 16 17 |
# File 'lib/mgit/output.rb', line 15 def perror(s) print_to_screen s.red end |
#pinfo(s) ⇒ Object
7 8 9 |
# File 'lib/mgit/output.rb', line 7 def pinfo(s) print_to_screen s.green end |
#psystem(s) ⇒ Object
3 4 5 |
# File 'lib/mgit/output.rb', line 3 def psystem(s) print_to_screen s end |
#ptable(table, options = {}) ⇒ Object
19 20 21 |
# File 'lib/mgit/output.rb', line 19 def ptable(table, = {}) print_to_screen TableOutputter.new(table, ).to_s end |
#pwarn(s) ⇒ Object
11 12 13 |
# File 'lib/mgit/output.rb', line 11 def pwarn(s) print_to_screen s.yellow end |