Sha256: 4af7b7884079bec563ffbb1667bf65649c01c67b52fff2f053ca50b63b1d3dfc

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

module GitObjectBrowser

  module Models

    class IndexReucExtension < Bindata

      attr_reader :signature, :total_length

      def initialize(input)
        super(input)
      end

      def parse
        @signature = raw(4) # REUC
        @total_length = int

        data = raw(@total_length) # TODO

        self
      end

      def to_hash
        return {
          "signature" => @signature,
          "total_length" => @total_length,
        }
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git-object-browser-0.0.2 lib/git-object-browser/models/index_reuc_extension.rb