Class: VerifiedDouble::StackFrame
- Inherits:
-
Object
- Object
- VerifiedDouble::StackFrame
- Defined in:
- lib/verified_double/stack_frame.rb
Instance Method Summary collapse
-
#initialize(string) ⇒ StackFrame
constructor
A new instance of StackFrame.
- #to_s ⇒ Object
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_s ⇒ Object
7 8 9 |
# File 'lib/verified_double/stack_frame.rb', line 7 def to_s @string.gsub(%r{.*/spec/}, "./spec/") end |