lib/gitrb/blob.rb in gitrb-0.0.8 vs lib/gitrb/blob.rb in gitrb-0.0.9

- old
+ new

@@ -1,24 +1,24 @@ module Gitrb # This class stores the raw string data of a blob - class Blob < Gitrb::Object + class Blob < GitObject attr_accessor :data, :mode # Initialize a Blob def initialize(options = {}) super(options) @data = options[:data] - @mode = options[:mode] || "100644" + @mode = options[:mode] || '100644' end def type - 'blob' + :blob end def ==(other) - Blob === other and id == other.id + Blob === other && id == other.id end def dump @data end