Module: Template

Constant Summary

Constants included from Color

Color::COLORS

Class Method Summary collapse

Class Method Details

.checker(boolean, str) ⇒ Object



15
16
17
# File 'lib/umu/beautifica/assets/template.rb', line 15

def checker(boolean, str)
  boolean ? "(○) #{blue(str)}" : "( ) #{str}"
end

.cover(num) ⇒ Object



11
12
13
# File 'lib/umu/beautifica/assets/template.rb', line 11

def cover(num)
  puts "\e[#{num}A\e[0J\e[1A"
end

.hover(boolen, str) ⇒ Object



19
20
21
# File 'lib/umu/beautifica/assets/template.rb', line 19

def hover(boolen, str)
  boolen ? green(str) : str
end

.pointer(boolean) ⇒ Object



7
8
9
# File 'lib/umu/beautifica/assets/template.rb', line 7

def pointer(boolean)
  boolean ? ' > ' : '   '
end