module Plane1Converter

Constants

HASH
VERSION

Public Class Methods

conv(str, fontshift) click to toggle source
# File lib/plane1converter/conv.rb, line 2
def self.conv(str, fontshift)
  raise "fontshift #{fontshift} not supported" unless HASH.keys.include?(fontshift)
  ret = str&.split(//).map { |c| HASH[fontshift][c] || c }.join
end