Sha256: 5935e75b66fbff60b01efcc64af7240addc3d405e4ae79a86705f79cc131454c
Contents?: true
Size: 532 Bytes
Versions: 7
Compression:
Stored size: 532 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] || 0100644 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
7 entries across 7 versions & 1 rubygems