class GitObjectBrowser::Models::IndexReucExtension

Attributes

signature[R]
total_length[R]

Public Class Methods

new(input) click to toggle source
Calls superclass method GitObjectBrowser::Models::Bindata::new
# File lib/git-object-browser/models/index_reuc_extension.rb, line 9
def initialize(input)
  super(input)
end

Public Instance Methods

parse() click to toggle source
# File lib/git-object-browser/models/index_reuc_extension.rb, line 13
def parse
  @signature = raw(4) # REUC
  @total_length = int

  data = raw(@total_length) # TODO

  self
end
to_hash() click to toggle source
# File lib/git-object-browser/models/index_reuc_extension.rb, line 22
def to_hash
  return {
    :signature     => @signature,
    :total_length  => @total_length,
  }
end