Sha256: e3f4be53adf58f36a3399fbb08b9a95a5b2c3d7eb92ebc85b385841fd32dd998

Contents?: true

Size: 978 Bytes

Versions: 1

Compression:

Stored size: 978 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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jisx0208-0.3.0 lib/jisx0208.rb