1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib/pry
Kyrylo Silin 6ca5f60207 Allow customisation of the prompt objects
Fix issue #885 (Add an API for extending Pry.view_clip)

    [1] pry(main)> class Barbie
                 |   def inspect
                 |     'You can brush my hair, undress me everywhere!'
                 |   end
                 | end
    => nil
    [2] pry(main)>
    [3] pry(main)> Pry.config.prompt_safe_objects << Barbie
    => [String, Numeric, Symbol, nil, true, false, Barbie]
    [4] pry(main)> cd Barbie.new
    [5] pry(You can brush my hair, undress me everywhere!):1>
2013-05-04 11:21:16 +03:00
..
code Remove warnings [Fixes #869] 2013-03-02 16:01:55 -08:00
commands Show{Source,Doc}: refactor assuming definitions from the context 2013-05-03 23:42:19 +03:00
helpers BaseHelpers: add #jruby_19? method 2013-02-04 17:57:00 +02:00
method Method::Patcher should preserve method visibility 2013-03-30 17:42:46 -07:00
test Merge branch 'wip.refactor' 2013-01-18 00:19:38 -08:00
cli.rb Send pry into interactive mode after running with -i 2013-04-25 22:29:26 +10:00
code.rb Move cache reading into Pry::Code for consistency 2013-03-28 01:05:55 -07:00
code_object.rb CodeObject: special case super keyword 2013-05-04 00:33:38 +03:00
command.rb Remove warnings [Fixes #869] 2013-03-02 16:01:55 -08:00
command_set.rb Remove warnings [Fixes #869] 2013-03-02 16:01:55 -08:00
commands.rb Refactor the way commands are required 2013-02-02 17:27:34 +02:00
completion.rb Remove warnings [Fixes #869] 2013-03-02 16:01:55 -08:00
config.rb Allow customisation of the prompt objects 2013-05-04 11:21:16 +03:00
core_extensions.rb core_extensions: no need in patching JRuby anymore 2013-05-03 23:16:41 +03:00
custom_completions.rb
editor.rb Use Shellwords.split before calling system [Fixes #810] 2013-03-24 23:36:08 -07:00
helpers.rb Extract Table to its own file 2013-01-09 17:18:44 -06:00
history.rb History: increment @original_lines 2013-03-17 10:18:52 +02:00
history_array.rb Fixed typo in comment 2013-03-08 19:02:06 +01:00
hooks.rb improve Pry::Hooks#hook_exists? method 2012-11-27 22:41:32 +01:00
indent.rb Ensure lines are integers before using them as strings [Fixes #872] 2013-03-04 23:11:19 -08:00
method.rb Move cache reading into Pry::Code for consistency 2013-03-28 01:05:55 -07:00
module_candidate.rb WrappedModule::Candidate: exposed number_of_candidates as public method 2013-03-12 21:01:28 +02:00
pager.rb Explicitly pull in Pry::Terminal 2013-02-12 06:47:44 -06:00
plugins.rb Robustify the plugin require 2013-02-07 20:58:31 -06:00
pry_class.rb Allow customisation of the prompt objects 2013-05-04 11:21:16 +03:00
pry_instance.rb Silence deprecation warning on Pry#repl 2013-04-19 19:24:21 -05: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.rb Guard against windows? + style homogenization 2013-02-08 01:03:29 -06:00
repl_file_loader.rb Remove input_stack and fix REPLFileLoader 2012-12-28 13:35:48 -08:00
rubygem.rb Rubygem: fix raising of CommandError for #install 2013-03-12 20:53:18 +02:00
terminal.rb Add Pry::Terminal.height! (only used once) 2013-02-07 21:30:20 -06:00
version.rb Revert "Bump master to v1.0.0pre1" 2013-04-01 09:27:51 -05:00
wrapped_module.rb Fix specs on rbx 2013-04-07 21:11:08 -07:00