class String

Public Instance Methods

bright() click to toggle source
# File lib/mocal/highlite.rb, line 8
def bright
  escape 1
end
escape(code) click to toggle source
# File lib/mocal/highlite.rb, line 5
def escape(code)
  "\e[#{code}m#{self}\e[0m"
end
reverse() click to toggle source
# File lib/mocal/highlite.rb, line 17
def reverse
  escape 7
end
underscore() click to toggle source
# File lib/mocal/highlite.rb, line 11
def underscore
  escape 4
end