Skip to content

Commit

Permalink
well, there's little point to use bang
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Apr 21, 2015
1 parent 0698375 commit 8cbde8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,11 @@ Pork.autorun(true) # enable

`require 'pork/auto'` would call `Pork.autorun`

### Pork.show_source!
### Pork.show_source

If you have [method_source][] installed, you could call this and have Pork
print the source to the failing lines. Here's an example of what Pork would
print with `Pork.show_source!`:
print with `Pork.show_source`:

```
Replicate this test with:
Expand Down
2 changes: 1 addition & 1 deletion lib/pork.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.Rainbows!
Pork::Stat.__send__(:include, Pork::Rainbows)
end

def self.show_source!
def self.show_source
require 'pork/extra/show_source'
Pork::Stat.__send__(:include, Pork::ShowSource)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/pork/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'pork/auto'

Pork.autorun(false)
Pork.show_source!
Pork.show_source

at_exit do
Pork.module_eval do
Expand Down

0 comments on commit 8cbde8c

Please sign in to comment.