Sha256: 7272966d2cbddd4434438373ff0b3c67861c8514f7ace0253ff87bfb901563a3

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

# coding: utf-8
module Tataki
  module Converter
    class Combine < Base
      def initialize(*converters)
        @converters = converters
      end

      def to_kana(sentence)
        kana = sentence
        @converters.each do |converter|
          kana = converter.to_kana(kana)
        end
        kana
      end
    end
  end

  Tataki::CONVERTERS << Converter::Combine
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tataki-0.0.4 lib/tataki/converters/combine.rb
tataki-0.0.3 lib/tataki/converters/combine.rb
tataki-0.0.2 lib/tataki/converters/combine.rb