Sha256: eb0f67b027b64b0fac477eaba8dfd1176ab8dfb620baecffeb025724a6ba1733

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

# encoding: utf-8

require 'forkforge/unicode'

class String

  def decompose tags = []
    Forkforge::Unicode::decompose self, tags
  end

  [:circle, :super, :sub, :wide].each { |m|
    class_eval %Q{
      def compose_#{m}
        Forkforge::Unicode::#{m} self
      end
    }
  }

  [:uppercase, :lowercase].each { |m|
    class_eval %Q{
      def #{m} lang = nil, context = nil
        Forkforge::Unicode::#{m} self, lang, context
      end
    }
  }

  def upcase
    uppercase
  end

  def downcase
    lowercase
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forkforge-0.0.3 lib/forkforge/knife/string.rb