Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changing conflicting names

  • Loading branch information...
commit 4e8d3b127d2d43c5a7dd630586dd3be38d76c71d 1 parent 0bb92c6
Sergey Gerasimov authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/palett.rb
6 lib/palett.rb
View
@@ -1,7 +1,7 @@
require 'stringio'
module Kernel
- def color text, code
+ def palette_color text, code
"\e[#{code}m#{text}\e[0m"
end
end
@@ -20,7 +20,7 @@ module Palett
ANSI_PROPERTIES.each do |code, name|
define_method name do
- color self, code
+ palette_color self, code
end
end
end
@@ -43,5 +43,5 @@ def #{name} &block
puts sio.string.strip.#{name}
end
EOM
- end
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.