lib/forkforge/knife/string.rb in forkforge-0.0.3 vs lib/forkforge/knife/string.rb in forkforge-0.0.4
- old
+ new
@@ -6,11 +6,11 @@
def decompose tags = []
Forkforge::Unicode::decompose self, tags
end
- [:circle, :super, :sub, :wide].each { |m|
+ [:circle, :super, :sub, :wide, :fraktur].each { |m|
class_eval %Q{
def compose_#{m}
Forkforge::Unicode::#{m} self
end
}
@@ -22,14 +22,9 @@
Forkforge::Unicode::#{m} self, lang, context
end
}
}
- def upcase
- uppercase
- end
-
- def downcase
- lowercase
- end
+ alias_method :upcase, :uppercase
+ alias_method :downcase, :lowercase
end