class RR::RecordedCall

Public Instance Methods

==(other) click to toggle source
# File lib/rr/recorded_call.rb, line 12
def ==(other)
  other.is_a?(self.class) &&
    subject == other.subject &&
    method_name == other.method_name &&
    arguments == other.arguments
end
inspect() click to toggle source
# File lib/rr/recorded_call.rb, line 3
def inspect
  '[%s, %s, %s, %s]' % [
    subject_to_s,
    method_name.inspect,
    arguments.inspect,
    block.inspect
  ]
end

Private Instance Methods

subject_to_s() click to toggle source
# File lib/rr/recorded_call.rb, line 21
def subject_to_s
  if subject.respond_to?(:__rr__original_to_s, true)
    subject.__rr__original_to_s
  else
    subject.to_s
  end
end