class method self.g_pack

Ruby on Rails 2.3.18

Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.g_pack(unpacked)

Reverse operation of g_unpack.

Example:

Chars.g_pack(Chars.g_unpack('क्षि')) #=> 'क्षि'

Parameters

unpacked req
Source
# File activesupport/lib/active_support/multibyte/chars.rb, line 527
        def g_pack(unpacked)
          (unpacked.flatten).pack('U*')
        end

Defined in activesupport/lib/active_support/multibyte/chars.rb line 527 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Multibyte::Chars

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close