Sha256: 0790c6a2f67e03105d1a4381c13067755fe1c8d4881824140bf3e956506cd09a
Contents?: true
Size: 435 Bytes
Versions: 2
Compression:
Stored size: 435 Bytes
Contents
module MethodLog class MethodDefinition 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 :source_file attr_reader :lines end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
method_log-0.0.4 | lib/method_log/method_definition.rb |
method_log-0.0.3 | lib/method_log/method_definition.rb |