Sha256: f2c4bd5ca08001fa10b283acf04db37b501887e5122d9c05330f5d942a6b09a9
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
module MethodLog class MethodCommit def initialize(commit: nil, method_definition: nil) @commit = commit @method_definition = method_definition end def ==(other) (commit == other.commit) && (method_definition == other.method_definition) end def hash [commit, method_definition].hash end def sha commit.sha end def author commit.author end def message commit.message end def method_source method_definition && method_definition.source + $/ end protected attr_reader :commit attr_reader :method_definition end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
method_log-0.0.5 | lib/method_log/method_commit.rb |
method_log-0.0.4 | lib/method_log/method_commit.rb |
method_log-0.0.3 | lib/method_log/method_commit.rb |