Sha256: 2a58b663c8a1eebeb8ad300043752b079e97b8632207f8410ee0cabce0303df7

Contents?: true

Size: 305 Bytes

Versions: 15

Compression:

Stored size: 305 Bytes

Contents

module WebConsole::REPL
  class InputController < WebConsole::Controller

    attr_accessor :view
    def initialize
    end

    def parse_input(input)
      input = input.dup
      input.chomp!
      if !input.strip.empty? # Ignore empty lines
        @view.add_input(input)
      end
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
webconsole-0.1.18 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.17 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.16 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.15 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.14 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.13 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.12 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.11 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.10 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.5 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.4 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.3 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.2 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.1 lib/webconsole/repl/lib/input_controller.rb
webconsole-0.1.0 lib/webconsole/repl/lib/input_controller.rb