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
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:
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.