Sha256: cafef4287a980de75b0f2af16238e6b201bf46fb75a654823f087482722cc7d2

Contents?: true

Size: 836 Bytes

Versions: 9

Compression:

Stored size: 836 Bytes

Contents

# frozen-string-literal: true

module Bioshogi
  module Dimension
    class CharInfo
      include ApplicationMemoryRecord
      memory_record [
        { key: "1",  number_kanji: "一", number_zenkaku: "1", },
        { key: "2",  number_kanji: "二", number_zenkaku: "2", },
        { key: "3",  number_kanji: "三", number_zenkaku: "3", },
        { key: "4",  number_kanji: "四", number_zenkaku: "4", },
        { key: "5",  number_kanji: "五", number_zenkaku: "5", },
        { key: "6",  number_kanji: "六", number_zenkaku: "6", },
        { key: "7",  number_kanji: "七", number_zenkaku: "7", },
        { key: "8",  number_kanji: "八", number_zenkaku: "8", },
        { key: "9",  number_kanji: "九", number_zenkaku: "9", },
      ]

      def hankaku_number
        key.to_s
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bioshogi-0.0.15 lib/bioshogi/dimension/char_info.rb
bioshogi-0.0.14 lib/bioshogi/dimension/char_info.rb
bioshogi-0.0.10 lib/bioshogi/dimension/char_info.rb
bioshogi-0.0.9 lib/bioshogi/dimension/char_info.rb
bioshogi-0.0.8 lib/bioshogi/dimension/char_info.rb
bioshogi-0.0.7 lib/bioshogi/dimension/char_info.rb
bioshogi-0.0.5 lib/bioshogi/dimension/char_info.rb
bioshogi-0.0.4 lib/bioshogi/dimension/char_info.rb
bioshogi-0.0.3 lib/bioshogi/dimension/char_info.rb