Module: Ripl::Rc::EatWhites

Includes:
U
Defined in:
lib/ripl/rc/eat_whites.rb

Instance Method Summary collapse

Methods included from U

included

Methods included from SqueezeHistory::Imp

#squeeze_history

Methods included from StripBacktrace::Imp

#cwd, #home, #snip, #strip_backtrace

Methods included from Anchor::Imp

#short_inspect

Methods included from Color::Imp

#black, #blue, #color, #colors, #cyan, #find_color, #green, #magenta, #red, #reset, #white, #yellow

Instance Method Details

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