Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/hawknee/colors.rb

Instance Method Summary collapse

Instance Method Details

To be honest.. Dunno what this does :D



71
72
73
74
# File 'lib/hawknee/colors.rb', line 71

def blink
	string = self
	"#{Hawknee::Effects[:blink]}#{string}#{Hawknee::Effects[:clear]}"
end

#boldObject

Makes a string bold



47
48
49
50
# File 'lib/hawknee/colors.rb', line 47

def bold
	string = self
	"#{Hawknee::Effects[:bold]}#{string}#{Hawknee::Effects[:clear]}"
end

#colorize(symbol) ⇒ Object

Colorizes a string



41
42
43
44
# File 'lib/hawknee/colors.rb', line 41

def colorize(symbol)
	string = self
	"#{Hawknee::Colors[symbol.downcase.to_sym]}#{string}#{Hawknee::Effects[:clear]}"
end

#hideObject

Hides a string



53
54
55
56
# File 'lib/hawknee/colors.rb', line 53

def hide
	string = self
	"#{Hawknee::Effects[:hide]}#{string}#{Hawknee::Effects[:clear]}"
end

#reverseObject

Reverses foreground and background colors



65
66
67
68
# File 'lib/hawknee/colors.rb', line 65

def reverse
	string = self
	"#{Hawknee::Effects[:reverse]}#{string}#{Hawknee::Effects[:clear]}"
end

#underlineObject

Underlines a string



59
60
61
62
# File 'lib/hawknee/colors.rb', line 59

def underline
	string = self
	"#{Hawknee::Effects[:underline]}#{string}#{Hawknee::Effects[:clear]}"
end