Sha256: a6a1584834500a3be8f102d774fc212d5742f30fdb65fdfb8f8e57727129f52a
Contents?: true
Size: 539 Bytes
Versions: 8
Compression:
Stored size: 539 Bytes
Contents
module Gitrb # This class stores the raw string data of a blob class Blob < Gitrb::Object 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 and 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
8 entries across 8 versions & 1 rubygems