Skip to content

Commit

Permalink
changing conflicting names
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Gerasimov committed Oct 23, 2014
1 parent 0bb92c6 commit 4e8d3b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/palett.rb
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -43,5 +43,5 @@ def #{name} &block
puts sio.string.strip.#{name}
end
EOM
end
end
end

0 comments on commit 4e8d3b1

Please sign in to comment.