module ShellCharacters

Easy output of characters in your terminal

www.utf8-chartable.de/unicode-utf8-table.pl

Public Class Methods

degrees_c() click to toggle source
# File lib/bbc/shell/characters.rb, line 40
def degrees_c
  "\xC2\xB0C"
end
degrees_f() click to toggle source
# File lib/bbc/shell/characters.rb, line 44
def degrees_f
  "\xC2\xB0F"
end
east() click to toggle source
# File lib/bbc/shell/characters.rb, line 12
def east
  "\xe2\x86\x92"
end
north() click to toggle source
# File lib/bbc/shell/characters.rb, line 20
def north
  "\xe2\x86\x91"
end
north_east() click to toggle source
# File lib/bbc/shell/characters.rb, line 28
def north_east
  "\xe2\x86\x97"
end
north_west() click to toggle source
# File lib/bbc/shell/characters.rb, line 24
def north_west
  "\xe2\x86\x96"
end
south() click to toggle source
# File lib/bbc/shell/characters.rb, line 16
def south
  "\xe2\x86\x93"
end
south_east() click to toggle source
# File lib/bbc/shell/characters.rb, line 36
def south_east
  "\xe2\x86\x98"
end
south_west() click to toggle source
# File lib/bbc/shell/characters.rb, line 32
def south_west
  "\xe2\x86\x99"
end
square_block() click to toggle source
# File lib/bbc/shell/characters.rb, line 48
def square_block
  "\xe2\x96\x88"
end
symbol_for_compass(direction) click to toggle source
# File lib/bbc/shell/characters.rb, line 52
def symbol_for_compass(direction)
  case direction
  when 'N' then north
  when 'NNE' then north
  when 'NE' then north_east
  when 'ENE' then east
  when 'E' then east
  when 'ESE' then east
  when 'SE' then south_east
  when 'SSE' then south
  when 'S' then south
  when 'SSW' then south
  when 'SW' then south_west
  when 'WSW' then west
  when 'W' then west
  when 'WNW' then west
  when 'NW' then north_west
  when 'NNW' then north
  else north
  end
end
west() click to toggle source
# File lib/bbc/shell/characters.rb, line 8
def west
  "\xe2\x86\x90"
end

Private Instance Methods

degrees_c() click to toggle source
# File lib/bbc/shell/characters.rb, line 40
def degrees_c
  "\xC2\xB0C"
end
degrees_f() click to toggle source
# File lib/bbc/shell/characters.rb, line 44
def degrees_f
  "\xC2\xB0F"
end
east() click to toggle source
# File lib/bbc/shell/characters.rb, line 12
def east
  "\xe2\x86\x92"
end
north() click to toggle source
# File lib/bbc/shell/characters.rb, line 20
def north
  "\xe2\x86\x91"
end
north_east() click to toggle source
# File lib/bbc/shell/characters.rb, line 28
def north_east
  "\xe2\x86\x97"
end
north_west() click to toggle source
# File lib/bbc/shell/characters.rb, line 24
def north_west
  "\xe2\x86\x96"
end
south() click to toggle source
# File lib/bbc/shell/characters.rb, line 16
def south
  "\xe2\x86\x93"
end
south_east() click to toggle source
# File lib/bbc/shell/characters.rb, line 36
def south_east
  "\xe2\x86\x98"
end
south_west() click to toggle source
# File lib/bbc/shell/characters.rb, line 32
def south_west
  "\xe2\x86\x99"
end
square_block() click to toggle source
# File lib/bbc/shell/characters.rb, line 48
def square_block
  "\xe2\x96\x88"
end
symbol_for_compass(direction) click to toggle source
# File lib/bbc/shell/characters.rb, line 52
def symbol_for_compass(direction)
  case direction
  when 'N' then north
  when 'NNE' then north
  when 'NE' then north_east
  when 'ENE' then east
  when 'E' then east
  when 'ESE' then east
  when 'SE' then south_east
  when 'SSE' then south
  when 'S' then south
  when 'SSW' then south
  when 'SW' then south_west
  when 'WSW' then west
  when 'W' then west
  when 'WNW' then west
  when 'NW' then north_west
  when 'NNW' then north
  else north
  end
end
west() click to toggle source
# File lib/bbc/shell/characters.rb, line 8
def west
  "\xe2\x86\x90"
end