Conrad Irwin
5d7c887129
Use Pry::Output to strip color when necessary
...
All credit to johnny5- for this idea:
952568b933
Pros: No longer need to check _pry_.config.color everywhere.
All color is stripped (not just that added by pry)
Cons: Inefficient to add colors and then remove them again.
2014-05-01 01:51:02 -07:00
Conrad Irwin
44463e7d85
Stop using compatibility aliases for Pry.config
2014-05-01 01:51:01 -07:00
Conrad Irwin
ccc2177f12
Add missing brackets to function definitions
2012-11-29 09:51:10 -08:00
Ryan Fitzgerald
e14ee9a6f4
Fix various mangled documentation
2012-06-26 22:30:00 -07:00
Conrad Irwin
d221a22d02
Merge Pry::CommandContext and Pry::CommandSet::Command into Pry::Command
2011-12-31 11:54:41 +00:00
John Mair
a090810f4c
added text.no_pager method to turn off paging for the duration of a block
2011-12-11 21:33:33 +13:00
Ryan Fitzgerald
fd488dfd01
implement cat --in ( fixes #330 )
2011-11-06 01:00:37 -07:00
Conrad Irwin
a4e96ebe22
remove "grey" (both in coderay and as an alias for bold_black)
2011-10-24 22:18:05 -07:00
Conrad Irwin
65e6e6a788
Add a "default" pseudo-colour
2011-10-09 21:41:33 -07:00
Ryan Fitzgerald
a87a5bddff
right-justify line numbers ( fixes #218 )
2011-09-04 00:29:36 -07:00
John Mair
01b248e296
updated with_line_numbers method to accept color parameter
2011-08-07 08:14:12 +12:00
Rob Gleeson
7051c12730
Quash (most) warnings emitted by -w.
...
Two remain:
- two from method_source gem.
2011-05-19 19:07:40 +01:00
Rob Gleeson
18a2e6d731
Document Text.with_line_numbers as accepting any object responding to #each_line as a argument.
2011-05-09 05:55:25 +01:00
Rob Gleeson
60f30ebcb0
Pry::Helpers::Text defines singleton methods only.
2011-05-07 15:20:03 +01:00
Rob Gleeson
5c9d5ee97b
Simplify docstring
2011-05-06 18:57:27 +01:00
Rob Gleeson
b23924186c
Mark Text#no_color as returning void (value of no interest)
2011-05-06 18:52:45 +01:00
Rob Gleeson
2744f866f7
Add Pry::Helpers::Text#with_line_numbers.
2011-05-06 18:50:40 +01:00
Rob Gleeson
1ee8af8040
Pry::Helpers::Color => Pry::Helpers::Text.
2011-05-06 18:30:37 +01:00