module MGit::Output
Public Instance Methods
perror(s)
click to toggle source
# File lib/mgit/output.rb, line 15 def perror(s) print_to_screen s.red end
pinfo(s)
click to toggle source
# File lib/mgit/output.rb, line 7 def pinfo(s) print_to_screen s.green end
psystem(s)
click to toggle source
# File lib/mgit/output.rb, line 3 def psystem(s) print_to_screen s end
ptable(table, options = {})
click to toggle source
# File lib/mgit/output.rb, line 19 def ptable(table, options = {}) print_to_screen TableOutputter.new(table, options).to_s end
pwarn(s)
click to toggle source
# File lib/mgit/output.rb, line 11 def pwarn(s) print_to_screen s.yellow end
Private Instance Methods
print_to_screen(s)
click to toggle source
# File lib/mgit/output.rb, line 25 def print_to_screen(s) if Configuration.colors puts s else puts s.uncolorize end end