class RealCharacter

Public Class Methods

hangeul() click to toggle source
# File lib/randexp/multibyte/characterlists/hangeul.rb, line 11
def self.hangeul
  @@hangeul ||= load_hangeul
end
kanji() click to toggle source
# File lib/randexp/multibyte/characterlists/kanji.rb, line 11
def self.kanji
  @@kanji ||= load_kanji
end
load_hangeul() click to toggle source
# File lib/randexp/multibyte/characterlists/hangeul.rb, line 2
def self.load_hangeul
  characterlist_file = File.expand_path("characterlists/hangeul", ::Randexp::Multibyte::RANDEXP_MULTIBYTE_ROOT)
  if File.exists?(characterlist_file)
    File.read(characterlist_file).split
  else
    raise "words file not found"
  end
end
load_kanji() click to toggle source
# File lib/randexp/multibyte/characterlists/kanji.rb, line 2
def self.load_kanji
  characterlist_file = File.expand_path("characterlists/kanji", ::Randexp::Multibyte::RANDEXP_MULTIBYTE_ROOT)
  if File.exists?(characterlist_file)
    File.read(characterlist_file).split
  else
    raise "words file not found"
  end
end