Method: Stringex::Unidecoder.encode
- Defined in:
- lib/stringex/unidecoder.rb
.encode(codepoint) ⇒ Object
Returns character for the given Unicode codepoint
34 35 36 |
# File 'lib/stringex/unidecoder.rb', line 34 def encode(codepoint) ["0x#{codepoint}".to_i(16)].pack("U") end |