Module: Ripl::Rc::CtrldNewline
- Includes:
- U
- Defined in:
- lib/ripl/rc/ctrld_newline.rb
Instance Method Summary collapse
-
#after_loop ⇒ Object
make ctrl-d end with a newline.
Methods included from U
Methods included from SqueezeHistory::Imp
Methods included from StripBacktrace::Imp
#cwd, #home, #snip, #strip_backtrace
Methods included from Anchor::Imp
Methods included from Ripl::Rc::Color::Imp
#black, #blue, #color, #colors, #cyan, #find_color, #green, #magenta, #red, #reset, #white, #yellow
Instance Method Details
#after_loop ⇒ Object
make ctrl-d end with a newline
8 9 10 11 12 |
# File 'lib/ripl/rc/ctrld_newline.rb', line 8 def after_loop return super if CtrldNewline.disabled? puts unless @input super end |