Sha256: c2eff8ea2ae51214524081b8ac310a2f7d6c743f74fe6d87b6c4a62c4466783b
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
# encoding: utf-8 require 'forkforge/unicode' class String def decompose tags = [] Forkforge::Unicode::decompose self, tags end [:circle, :super, :sub, :wide, :fraktur].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 } } alias_method :upcase, :uppercase alias_method :downcase, :lowercase end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forkforge-0.0.4 | lib/forkforge/knife/string.rb |