Module: JazzFingers::Prompt::PryVersion013AndLater
- Included in:
- JazzFingers::Prompt
- Defined in:
- lib/jazz_fingers/prompt/pry_version_013_and_later.rb
Overview
For Pry >= 0.13.
Instance Method Summary collapse
-
#config ⇒ Object
Add the JazzFingers prompt to the Pry::Prompt hash to enable changing it with ‘change-prompt`.
Instance Method Details
#config ⇒ Object
Add the JazzFingers prompt to the Pry::Prompt hash to enable changing it with ‘change-prompt`.
Return the Pry::Prompt object.
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/jazz_fingers/prompt/pry_version_013_and_later.rb', line 11 def config return Pry::Prompt[:jazz_fingers] if Pry::Prompt[:jazz_fingers] Pry::Prompt.add( :jazz_fingers, "A spruced-up prompt provided by jazz_fingers.", [main_separator, wait_separator] ) do |context, _nesting, pry, separator| template(Pry.view_clip(context), pry, separator) end Pry::Prompt[:jazz_fingers] end |