Sha256: 9752a2fa0996fc9e0a958ea7c0417c78564065feaf1af0438678a91745d1c617

Contents?: true

Size: 320 Bytes

Versions: 4

Compression:

Stored size: 320 Bytes

Contents

module Itaiji
  module Conversions
    refine String do
      def to_seijitai
        itaiji_converter.seijitai(self)
      end

      def to_itaiji
        itaiji_converter.itaiji(self)
      end

      private

      def itaiji_converter
        @itaiji_converter ||= Itaiji::Converter.new
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
itaiji-1.0.0 lib/itaiji/core_ext/string/conversions.rb
itaiji-0.3.1 lib/itaiji/core_ext/string/conversions.rb
itaiji-0.3.0 lib/itaiji/core_ext/string/conversions.rb
itaiji-0.2.0 lib/itaiji/core_ext/string/conversions.rb