Sha256: 4a0e9e8cfc566fb17ed52fb70e9889fc4f371539882595650498c22f98e390ab
Contents?: true
Size: 484 Bytes
Versions: 12
Compression:
Stored size: 484 Bytes
Contents
class Pry module ExtendedCommands UserCommandAPI = Pry::CommandSet.new do command "define-command", "To honor Mon-Ouie" do |arg| next output.puts("Provide an arg!") if arg.nil? prime_string = "command #{arg_string}\n" command_string = Pry.active_instance.r(target, prime_string) eval_string.replace <<-HERE _pry_.commands.instance_eval do #{command_string} end HERE end end end end
Version data entries
12 entries across 12 versions & 1 rubygems