module JazzFingers
Constants
- AMAZING_PRINT
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/jazz_fingers.rb, line 46 def config @config ||= Configuration.new end
configure() { |config ||= configuration| ... }
click to toggle source
# File lib/jazz_fingers.rb, line 41 def configure yield @config ||= Configuration.new setup! end
input()
click to toggle source
# File lib/jazz_fingers.rb, line 37 def input @input ||= Input.config end
print()
click to toggle source
# File lib/jazz_fingers.rb, line 23 def print @print ||= Print.config end
prompt()
click to toggle source
# File lib/jazz_fingers.rb, line 27 def prompt @prompt ||= Prompt.new( colored: config.colored_prompt, separator: config.prompt_separator, application_name: config.application_name ) @prompt.config end
setup!()
click to toggle source
# File lib/jazz_fingers.rb, line 50 def setup! Pry.prompt = prompt Pry.input = input if JazzFingers.coolline? Pry.config.should_load_plugins = false Pry.commands.alias_command('c', 'continue') Pry.commands.alias_command('s', 'step') Pry.commands.alias_command('n', 'next') Pry.editor = 'vi' Pry.config.ls.separator = "\n" Pry.config.ls.heading_color = :magenta Pry.config.ls.public_method_color = :green Pry.config.ls.protected_method_color = :yellow Pry.config.ls.private_method_color = :bright_black JazzFingers::Commands.constants(false).each do |constant| command = JazzFingers::Commands.const_get(constant) Pry.config.commands.import(command) end if JazzFingers.amazing_print? require 'amazing_print' AmazingPrint.defaults = JazzFingers::AMAZING_PRINT Pry.print = print end JazzFingers::CodeRay.setup! true end