begin29
6/26/2017 - 8:32 AM

custom pryrc with scratch file

custom pryrc with scratch file

load 'scratch.rb'
include Scratch

default_command_set = Pry::CommandSet.new do
  command "scratch!", "reload scratch" do |str|
    load 'scratch.rb'
  end
end

Pry.config.commands.import default_command_set