Class: VerifiedDouble::StackFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/verified_double/stack_frame.rb

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ StackFrame

Returns a new instance of StackFrame.



3
4
5
# File 'lib/verified_double/stack_frame.rb', line 3

def initialize(string)
  @string = string
end

Instance Method Details

#to_sObject



7
8
9
# File 'lib/verified_double/stack_frame.rb', line 7

def to_s
  @string.gsub(%r{.*/spec/}, "./spec/")
end