Class: Terminal::Shell::Input::Writer
- Inherits:
-
Object
- Object
- Terminal::Shell::Input::Writer
- Defined in:
- lib/terminal/shell.rb
Direct Known Subclasses
Instance Method Summary collapse
- #_next ⇒ Object
- #call(io) ⇒ Object
-
#initialize(obj) ⇒ Writer
constructor
A new instance of Writer.
Constructor Details
#initialize(obj) ⇒ Writer
Returns a new instance of Writer.
94 |
# File 'lib/terminal/shell.rb', line 94 def initialize(obj) = (@obj = obj) |
Instance Method Details
#_next ⇒ Object
95 |
# File 'lib/terminal/shell.rb', line 95 def _next = (_, @obj = @obj, nil).first |
#call(io) ⇒ Object
93 |
# File 'lib/terminal/shell.rb', line 93 def call(io) = (io.write(_next) if @obj) |