class method self.g_pack

Ruby on Rails 2.2.3

Since v2.2.3 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 500
        def g_pack(unpacked)
          (unpacked.flatten).pack('U*')
        end

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

Defined in ActiveSupport::Multibyte::Chars

Type at least 2 characters to search.

↑↓ navigate · open · esc close