Skip to content

Commit

Permalink
Add Pry reload! method
Browse files Browse the repository at this point in the history
  • Loading branch information
kosdiamantis committed Apr 15, 2015
1 parent faa3892 commit a4e0c0b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pryrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

def reload!
Object.send(:remove_const, :Skroutz)

$LOADED_FEATURES.find_all { |file| file =~ %r{\/skroutz\/} }.
each(&method(:load)).
any?
end

0 comments on commit a4e0c0b

Please sign in to comment.