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