Class: Raykit::Symbols

Inherits:
Object
  • Object
show all
Defined in:
lib/raykit/symbols.rb

Class Method Summary collapse

Class Method Details

.arrow_downObject



58
59
60
# File 'lib/raykit/symbols.rb', line 58

def self.arrow_down
  Rainbow("\u2B07").yellow  # Down arrow
end

.arrow_down_smallObject



82
83
84
# File 'lib/raykit/symbols.rb', line 82

def self.arrow_down_small
  Rainbow("\u2B07").yellow  # Down arrow
end

.arrow_leftObject



52
53
54
# File 'lib/raykit/symbols.rb', line 52

def self.arrow_left
  Rainbow("\u2B05").yellow  # Left arrow
end

.arrow_left_rightObject



64
65
66
# File 'lib/raykit/symbols.rb', line 64

def self.arrow_left_right
  Rainbow("\u2194").yellow  # Left/right arrow
end

.arrow_left_smallObject



88
89
90
# File 'lib/raykit/symbols.rb', line 88

def self.arrow_left_small
  Rainbow("\u2B05").yellow  # Left arrow
end

.arrow_lower_leftObject



73
74
75
# File 'lib/raykit/symbols.rb', line 73

def self.arrow_lower_left
  Rainbow("\u2199").yellow  # South west arrow
end

.arrow_lower_rightObject



70
71
72
# File 'lib/raykit/symbols.rb', line 70

def self.arrow_lower_right
  Rainbow("\u2198").yellow  # South east arrow
end

.arrow_rightObject



49
50
51
# File 'lib/raykit/symbols.rb', line 49

def self.arrow_right
  Rainbow("\u27A4").yellow  # Arrow pointing rightwards then curving upwards
end

.arrow_right_smallObject



85
86
87
# File 'lib/raykit/symbols.rb', line 85

def self.arrow_right_small
  Rainbow("\u27A1").yellow  # Black rightwards arrow
end

.arrow_upObject



55
56
57
# File 'lib/raykit/symbols.rb', line 55

def self.arrow_up
  Rainbow("\u2B06").yellow  # Up arrow
end

.arrow_up_downObject



61
62
63
# File 'lib/raykit/symbols.rb', line 61

def self.arrow_up_down
  Rainbow("\u2195").yellow  # Up/down arrow
end

.arrow_up_down_smallObject



91
92
93
# File 'lib/raykit/symbols.rb', line 91

def self.arrow_up_down_small
  Rainbow("\u2195").yellow  # Up/down arrow
end

.arrow_up_smallObject



79
80
81
# File 'lib/raykit/symbols.rb', line 79

def self.arrow_up_small
  Rainbow("\u2B06").yellow  # Up arrow
end

.arrow_upper_leftObject



76
77
78
# File 'lib/raykit/symbols.rb', line 76

def self.arrow_upper_left
  Rainbow("\u2196").yellow  # North west arrow
end

.arrow_upper_rightObject



67
68
69
# File 'lib/raykit/symbols.rb', line 67

def self.arrow_upper_right
  Rainbow("\u2197").yellow  # North east arrow
end

.bugObject



37
38
39
# File 'lib/raykit/symbols.rb', line 37

def self.bug
  Rainbow("\u1F41E").yellow  # Bug
end

.checkmarkObject



4
5
6
# File 'lib/raykit/symbols.rb', line 4

def self.checkmark
  Rainbow("\u2713").green
end

.coffeeObject



31
32
33
# File 'lib/raykit/symbols.rb', line 31

def self.coffee
  Rainbow("\u2615").yellow  # Hot beverage
end

.debugObject



16
17
18
# File 'lib/raykit/symbols.rb', line 16

def self.debug
  Rainbow("\u24D8").blue  # Circle with "i"
end

.errorObject



10
11
12
# File 'lib/raykit/symbols.rb', line 10

def self.error
  Rainbow("\u0058").red
end

.fatalObject



22
23
24
# File 'lib/raykit/symbols.rb', line 22

def self.fatal
  Rainbow("\u25A0").bright.red  # Filled square, indicating stop/critical
end

.gearObject



40
41
42
# File 'lib/raykit/symbols.rb', line 40

def self.gear
  Rainbow("\u2699").yellow  # Gear
end

.get_severity_symbol(severity) ⇒ Object



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/raykit/symbols.rb', line 98

def self.get_severity_symbol(severity)
  case severity
  when "DEBUG"
    question
    #when "INFO"
    #  info
  when "WARN"
    warning
  when "ERROR"
    error
  when "FATAL"
    fatal
  else
    " "
  end
end

.heartObject



34
35
36
# File 'lib/raykit/symbols.rb', line 34

def self.heart
  Rainbow("\u2764").red  # Heavy black heart
end

.infoObject



19
20
21
# File 'lib/raykit/symbols.rb', line 19

def self.info
  Rainbow("\u2139").blue  # Information source
end

.magnifying_glassObject



43
44
45
# File 'lib/raykit/symbols.rb', line 43

def self.magnifying_glass
  Rainbow("\u1F50D").yellow  # Left-pointing magnifying glass
end

.musicObject



95
96
97
# File 'lib/raykit/symbols.rb', line 95

def self.music
  Rainbow("\u266B").yellow  # Beamed eighth notes
end

.questionObject



46
47
48
# File 'lib/raykit/symbols.rb', line 46

def self.question
  Rainbow("\u003F").yellow  # Question mark
end

.starObject



28
29
30
# File 'lib/raykit/symbols.rb', line 28

def self.star
  Rainbow("\u2605").yellow  # Star
end

.successObject



7
8
9
# File 'lib/raykit/symbols.rb', line 7

def self.success
  Rainbow("\u2713").green
end

.warnObject



25
26
27
# File 'lib/raykit/symbols.rb', line 25

def self.warn
  Rainbow("\u26A0").yellow  # Warning sign
end

.warningObject



13
14
15
# File 'lib/raykit/symbols.rb', line 13

def self.warning
  Rainbow("\u26A0").yellow
end