Sha256: 4439f0a40f7fb5b8dd1e34d2c74eed18bda83e9de76e8cbc78a78152480ad061

Contents?: true

Size: 810 Bytes

Versions: 1

Compression:

Stored size: 810 Bytes

Contents

# frozen_string_literal: true

require_relative "jisx0208/version"
require_relative "jisx0208/processor"

module JISX0208
  class Code
    def initialize
      @processor = Processor.new
    end

    def contains_first_level_kanji?(string)
      @processor.contains_first_level_kanji?(string)
    end

    def contains_second_level_kanji?(string)
      @processor.contains_seconde_level_kanji?(string)
    end

    def contains_jisx0208_kanji?(string)
      @processor.contains_jisx0208_kanji?(string)
    end

    def only_first_level_kanji?(string)
      @processor.only_first_level_kanji?(string)
    end

    def only_second_level_kanji?(string)
      @processor.only_second_level_kanji?(string)
    end

    def only_jisx0208_kanji?(string)
      @processor.only_jisx0208_kanji?(string)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jisx0208-0.2.0 lib/jisx0208.rb