Sha256: 23d74cfba1449cafab51ed0ec1102d1c6b0b6ce91835ddefa463cdc5aafe0ea2

Contents?: true

Size: 424 Bytes

Versions: 12

Compression:

Stored size: 424 Bytes

Contents

# coding: utf-8
#
module Romaji
  module StringExtension
    def normalize
      Romaji.normalize(self)
    end

    def normalize!
      self.replace(self.normalize)
    end

    def kana
      Romaji.romaji2kana(self.normalize)
    end

    def kana!
      self.replace(self.kana)
    end

    def romaji
      Romaji.kana2romaji(self.normalize)
    end

    def romaji!
      self.replace(self.romaji)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
romaji-0.2.4 lib/romaji/string_extension.rb
romaji-0.2.3 lib/romaji/string_extension.rb
romaji-0.2.2 lib/romaji/string_extension.rb
romaji-0.2.1 lib/romaji/string_extension.rb
romaji-0.2.0 lib/romaji/string_extension.rb
romaji-0.1.6 lib/romaji/string_extension.rb
romaji-0.1.5 lib/romaji/string_extension.rb
romaji-0.1.4 lib/romaji/string_extension.rb
romaji-0.1.3 lib/romaji/string_extension.rb
romaji-0.1.2 lib/romaji/string_extension.rb
romaji-0.1.1 lib/romaji/string_extension.rb
romaji-0.1.0 lib/romaji/string_extension.rb