Class: Terminal::Shell::Input::Writer

Inherits:
Object
  • Object
show all
Defined in:
lib/terminal/shell.rb

Direct Known Subclasses

CopyWriter

Instance Method Summary collapse

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

#_nextObject



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)