pry-less-source

Provides less-source command support for Pry.
This is only for Unix-like OS.

Installation

$ vi Gemfile
gem 'pry'
gem 'pry-rails'
gem 'pry-less-source'
$ bundle

Usage

Start Pry

$ pry

Or

$ rails c
pry(main)> less-source Book.all

less-source_1
less-source_2

Difference of show-source command

show-source command output like this:
pry-rails

Contributing

  1. Fork this repository. And clone it.
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push your branch to GitHub (git push origin my-new-feature)
  5. Create a new Pull Request

License

MIT