Skip to content

Instantly share code, notes, and snippets.

Dimitry Nazarov dimanyc

  • thoughtbot
  • Brooklyn, NY
Block or report user

Report or block dimanyc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Game
def cls
system ('cls') #for cmd
system ('clear') #for mac / linux
end
class String
def green; "\033[32m#{self}\033[0m" end #< colorizing all instances of the main class String and method green. Solution taken from here: http://stackoverflow.com/questions/1489183/colorized-ruby-output
def red; "\033[31m#{self}\033[0m" end
def brown; "\033[33m#{self}\033[0m" end
You can’t perform that action at this time.