Skip to content

Loading…

quintessential methods for quasi-explicit methodology #4

Closed
wants to merge 1 commit into from

3 participants

@fowlmouth

No description provided.

@davejacobs
Owner

Hi there, thanks for the patch. Could you walk me through the use cases where you would unconditionally want to stop your program from running while debugging?

@suan

Inspecting the state of the database at that point in time, without any later code running that might change things?

@blambeau blambeau referenced this pull request
Merged

Add a `k` (Kill) letter. #10

@davejacobs
Owner

I've accepted @blambeau's pull request that adds a k method for killing a process after a number of calls. To get the x functionality you want, check out the a method.

@davejacobs davejacobs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 1, 2012
  1. @fowlmouth
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/letters/core_ext.rb
View
8 lib/letters/core_ext.rb
@@ -155,5 +155,13 @@ def t(opts={})
Helpers.out Time.now.to_s(opts[:time_format].to_sym), opts
end
end
+
+ def q()
+ quit
+ end
+
+ def x(exception = StandardError)
+ raise exception
+ end
end
end
Something went wrong with that request. Please try again.