Class: Console::Output::Wrapper

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

Direct Known Subclasses

Failure, Sensitive

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delegate, **options) ⇒ Wrapper

Returns a new instance of Wrapper.



9
10
11
# File 'lib/console/output/wrapper.rb', line 9

def initialize(delegate, **options)
	@delegate = delegate
end

Instance Attribute Details

#delegateObject (readonly)

Returns the value of attribute delegate.



13
14
15
# File 'lib/console/output/wrapper.rb', line 13

def delegate
  @delegate
end

Instance Method Details

#callObject



23
24
25
# File 'lib/console/output/wrapper.rb', line 23

def call(...)
	@delegate.call(...)
end

#last_outputObject



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

def last_output
	@delegate.last_output
end

#verbose!(value = true) ⇒ Object



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

def verbose!(value = true)
	@delegate.verbose!(value)
end