Skip to content

Instantly share code, notes, and snippets.

@Mon-Ouie
Created April 30, 2011 07:53
Show Gist options
  • Save Mon-Ouie/949524 to your computer and use it in GitHub Desktop.
Save Mon-Ouie/949524 to your computer and use it in GitHub Desktop.
module Helpers
def use_a_helper
puts "test"
end
end
class Pry::CommandContext
include Helpers
end
Pry.commands = Pry::CommandSet.new :test, Pry::Commands do
command "foo" do
use_a_helper
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment