class MethodLog::MethodDefinition

Attributes

lines[R]
source_file[R]

Public Class Methods

new(source_file, lines) click to toggle source
# File lib/method_log/method_definition.rb, line 5
def initialize(source_file, lines)
  @source_file = source_file
  @lines = lines
end

Public Instance Methods

==(other) click to toggle source
# File lib/method_log/method_definition.rb, line 10
def ==(other)
  (source_file == other.source_file) && (lines == other.lines)
end
hash() click to toggle source
# File lib/method_log/method_definition.rb, line 14
def hash
  [source_file, lines].hash
end
source() click to toggle source
# File lib/method_log/method_definition.rb, line 18
def source
  source_file.snippet(lines)
end