Sha256: 365a15ae020b93d2558f1b2e10eb401a099ceab21597745bc92236dccf9d580d
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
module MethodLog class MethodDefinition attr_reader :source_file def initialize(source_file: nil, lines: nil) @source_file = source_file @lines = lines end def ==(other) (source_file == other.source_file) && (lines == other.lines) end def hash [source_file, lines].hash end def source source_file.snippet(lines) end protected attr_reader :lines end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
method_log-0.0.5 | lib/method_log/method_definition.rb |