Sha256: 7e7c0d3b95e920c12b3efff918b5aa940bad8c0dc11a34f718e66b1109cf4a7c

Contents?: true

Size: 487 Bytes

Versions: 9

Compression:

Stored size: 487 Bytes

Contents

# frozen-string-literal: true

module Bioshogi
  module Yomiage
    class Formatter < OfficialFormatter
      def str_compact(str)
        str
      end

      def location_name
        location.yomiage(handicap) + "、"
      end

      def piece_name
        piece.yomiage(false)
      end

      def place_name
        place_to.yomiage
      end

      def soldier_name
        soldier.yomiage
      end

      def kw(s)
        KanjiInfo.fetch(s).yomiage
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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