Sha256: d43057a125070d4471fdfbded54dafe72d1d32b530f0363fe3da35d2d64b8c63

Contents?: true

Size: 792 Bytes

Versions: 9

Compression:

Stored size: 792 Bytes

Contents

# frozen-string-literal: true

module Bioshogi
  module Formatter
    concern :ParserMethods do
      included do
        FORMATTER_METHODS = [
          :container,
          :to_kif,
          :to_ki2,
          :to_csa,
          :to_sfen,
          :to_bod,
          :to_yomiage,
          :to_yomiage_list,
          :to_akf,
          :screen_image_renderer,
          :to_image,
          :to_png,
          :to_jpg,
          :to_gif,
          :to_webp,
          :to_animation_mp4,
          :to_animation_gif,
          :to_animation_apng,
          :to_animation_webp,
          :to_animation_zip,
        ].freeze
        delegate(*FORMATTER_METHODS, to: :formatter)
      end

      def formatter
        @formatter ||= Core.new(pi, parser_options)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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