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
permalink #perror(s) ⇒ Object
[View source]
15 16 17 |
# File 'lib/mgit/output.rb', line 15 def perror(s) print_to_screen s.red end |
permalink #pinfo(s) ⇒ Object
[View source]
7 8 9 |
# File 'lib/mgit/output.rb', line 7 def pinfo(s) print_to_screen s.green end |
permalink #psystem(s) ⇒ Object
[View source]
3 4 5 |
# File 'lib/mgit/output.rb', line 3 def psystem(s) print_to_screen s end |
permalink #ptable(table, options = {}) ⇒ Object
[View source]
19 20 21 |
# File 'lib/mgit/output.rb', line 19 def ptable(table, = {}) print_to_screen TableOutputter.new(table, ).to_s end |
permalink #pwarn(s) ⇒ Object
[View source]
11 12 13 |
# File 'lib/mgit/output.rb', line 11 def pwarn(s) print_to_screen s.yellow end |