Sha256: 08eb78e60ce07a2562f55aed9404cb8565a005fba71935ad1ba79d1bb2f3918a

Contents?: true

Size: 254 Bytes

Versions: 5

Compression:

Stored size: 254 Bytes

Contents

require 'ripl/rc/u'

module Ripl::Rc::EatWhites
  include Ripl::Rc::U

  # don't print empty input
  def print_result result
    return super if EatWhites.disabled?
    super unless @input.strip == ''
  end
end

Ripl::Shell.include(Ripl::Rc::EatWhites)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ripl-rc-0.2.4 lib/ripl/rc/eat_whites.rb
ripl-rc-0.2.3 lib/ripl/rc/eat_whites.rb
ripl-rc-0.2.2 lib/ripl/rc/eat_whites.rb
ripl-rc-0.2.1 lib/ripl/rc/eat_whites.rb
ripl-rc-0.2.0 lib/ripl/rc/eat_whites.rb