Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if !!defined?(::Pry)
- puts 'Working with Pry'
- Pry.config.print = proc do |output, value|
- if value.class.included_modules.include?(::Organizer::Explainer)
- output.puts "#{value.inspect}"
- else
- ::Pry::DEFAULT_PRINT.call(output, value, _pry_)
- end
- end
- else
- puts 'Not working with Pry'
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement