Sha256: df46462f6b62b3c256d54aad3adcff34d932ca1798fd7c300ed0da719a3b6a7f
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
module Gitrb # This class stores the raw string data of a blob class Blob < GitObject attr_accessor :data, :mode # Initialize a Blob def initialize(options = {}) super(options) @data = options[:data] @mode = options[:mode] || '100644' end def type :blob end def ==(other) Blob === other && id == other.id end def dump @data end # Save the data to the git object repository def save repository.put(self) id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitrb-0.0.9 | lib/gitrb/blob.rb |