Sha256: c891926e68f86dfa25cb9043427abd7623fb948ddc1b08c2be8118cbab7e487f

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

module Polyfill
  module V2_4
    module String
      module Instance
        module Unpack1
          module Method
            def unpack1(*args)
              unpack(*args).first
            end
          end

          refine ::String do
            include Method
          end

          def self.included(base)
            base.include Method
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polyfill-0.6.0 lib/polyfill/v2_4/string/instance/unpack1.rb
polyfill-0.5.0 lib/polyfill/v2_4/string/instance/unpack1.rb
polyfill-0.4.0 lib/polyfill/v2_4/string/instance/unpack1.rb