Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. if !!defined?(::Pry)
  2. puts 'Working with Pry'
  3.  
  4. Pry.config.print = proc do |output, value|
  5. if value.class.included_modules.include?(::Organizer::Explainer)
  6. output.puts "#{value.inspect}"
  7. else
  8. ::Pry::DEFAULT_PRINT.call(output, value, _pry_)
  9. end
  10. end
  11.  
  12. else
  13. puts 'Not working with Pry'
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement