Class: Console::Output::Null

Inherits:
Object
  • Object
show all
Defined in:
lib/console/output/null.rb

Overview

A null output that does nothing.

Instance Method Summary collapse

Constructor Details

#initializeNull

Create a new null output.



11
12
# File 'lib/console/output/null.rb', line 11

def initialize(...)
end

Instance Method Details

#callObject

Do nothing.



20
21
# File 'lib/console/output/null.rb', line 20

def call(...)
end

#last_outputObject

The last output is always self.



15
16
17
# File 'lib/console/output/null.rb', line 15

def last_output
	self
end