Module: Ripl::Rc::EatWhites
- Includes:
- U
- Defined in:
- lib/ripl/rc/eat_whites.rb
Instance Method Summary collapse
-
#print_result(result) ⇒ Object
don’t print empty input.
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 Color::Imp
#black, #blue, #color, #colors, #cyan, #find_color, #green, #magenta, #red, #reset, #white, #yellow
Instance Method Details
#print_result(result) ⇒ Object
don’t print empty input
8 9 10 11 |
# File 'lib/ripl/rc/eat_whites.rb', line 8 def print_result result return super if EatWhites.disabled? super unless @input.strip == '' end |