class String

Public Instance Methods

path_for_os() click to toggle source
# File lib/monkey_patches.rb, line 18
def path_for_os
  WINDOWS ? self.gsub('/', '\\') : self
end
red() click to toggle source
# File lib/monkey_patches.rb, line 13
def red
  return self if WINDOWS
  "\e[31m#{self}\e[0m"
end