Method: Confgit::WithColor#with_color

Defined in:
lib/confgit/with_color.rb

#with_color(*colors) ⇒ Object

カラー表示する



44
45
46
47
48
49
50
51
# File 'lib/confgit/with_color.rb', line 44

def with_color(*colors)
  begin
    set_color(*colors)
    yield
  ensure
    set_color(0)
  end
end