pry--pry/lib/pry
John Mair f77a2ab5ca added `before_eval` hook & tests
This came about because KINGSABRI wanted his pry console to only execute commands, not ruby code (lol).
I conconcated the following piece of code that achieves this, but it required a before_eval hook:

```
_pry_.hooks.add_hook(:before_eval, :kill_ruby) do |code, pry|
  if !code.empty?
    pry.suppress_output = true
    pry.output.puts "Command #{code.strip} not found, type 'help'"
    code.replace("")
  end
end
```
2012-06-24 01:48:11 +12:00
..
default_commands Extract out Pry::WrappedModule::Candidate from Pry::WrappedModule & document. 2012-06-23 13:23:22 +12:00
extended_commands added sticky local API (renamed special -> sticky) 2012-03-04 03:22:52 +13:00
helpers highlight 'raise' yard tag 2012-06-23 21:13:44 +12:00
cli.rb ensure pry doesn't load when invoked with -h option 2012-06-21 22:11:08 +12:00
code.rb added tests for module candidate API 2012-06-23 20:14:10 +12:00
command.rb Provide a place for commands to store state. 2012-06-16 00:45:04 +12:00
command_set.rb added `gist --clip` option to copy content to clipboard rather than gist it. 2012-06-03 01:50:30 +12:00
commands.rb rename "basic" to "misc" 2012-03-01 17:10:55 -08:00
completion.rb Manually merged branch "issue/601". 2012-06-19 15:47:52 +02:00
config.rb Allow `Pry.config.editor` procs that take a `reloading` arg 2012-04-03 21:48:09 -05:00
core_extensions.rb Fix show-source and show-doc on __binding__/__binding_impl__ 2012-06-10 23:42:14 -07:00
custom_completions.rb added file-mode toggle command, brings in filesystem completion and 2011-04-07 05:38:18 +12:00
helpers.rb Share argument parsing code for methody commands 2011-10-15 01:35:24 -07:00
history.rb Fix all warnings on startup in 1.9.3 2012-05-28 16:37:32 -07:00
history_array.rb implement cat --in (fixes #330) 2011-11-06 01:00:37 -07:00
hooks.rb Allow use of hash-based hooks, but show warning. 2012-01-24 21:44:21 +13:00
indent.rb Fix all warnings on startup in 1.9.3 2012-05-28 16:37:32 -07:00
method.rb Fix show-source and show-doc on __binding__/__binding_impl__ 2012-06-10 23:42:14 -07:00
module_candidate.rb added tests for module candidate API 2012-06-23 20:14:10 +12:00
plugins.rb Set plugin options before requiring the plugin. 2012-04-23 12:36:27 +02:00
pry_class.rb Use a different ANSI sequences for clearing lines. 2012-06-22 10:00:43 +02:00
pry_instance.rb added `before_eval` hook & tests 2012-06-24 01:48:11 +12:00
rbx_method.rb define a Pry::Method#source_location, fixes #524 2012-04-13 18:39:04 +12:00
rbx_path.rb Workaround for rubinius binding __FILE__ bug #1581 2012-03-02 04:02:51 +13:00
repl_file_loader.rb provide CLI 'pry my_file.rb' functionality to load file through REPL loop 2012-06-20 02:10:18 +12:00
version.rb version 0.9.9.6 release 2012-05-10 21:32:15 +12:00
wrapped_module.rb added tests for module candidate API 2012-06-23 20:14:10 +12:00