Module: Unicase
- Defined in:
- lib/unicase.rb
Constant Summary collapse
- Uppercase =
Hash.new { |h,k| k}
- Lowercase =
Hash.new { |h,k| k}
Class Method Summary collapse
Class Method Details
.to_u(x) ⇒ Object
5 6 7 |
# File 'lib/unicase.rb', line 5 def self.to_u(x) [x.to_i(16)].pack("U").freeze end |