Sha256: e64e6dda3688f068745eae1bf742f472273aa6e79b66b73c31ed86521a469863
Contents?: true
Size: 330 Bytes
Versions: 3
Compression:
Stored size: 330 Bytes
Contents
module WebConsole::REPL class InputController < WebConsole::Controller attr_accessor :view def initialize(view) @view = view 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webconsole-0.2.1 | lib/webconsole/repl/lib/input_controller.rb |
webconsole-0.2.0 | lib/webconsole/repl/lib/input_controller.rb |
webconsole-0.1.19 | lib/webconsole/repl/lib/input_controller.rb |