Class: Console::Output::Wrapper
- Inherits:
-
Object
- Object
- Console::Output::Wrapper
- Defined in:
- lib/console/output/wrapper.rb
Instance Attribute Summary collapse
-
#delegate ⇒ Object
readonly
Returns the value of attribute delegate.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(delegate, **options) ⇒ Wrapper
constructor
A new instance of Wrapper.
- #last_output ⇒ Object
- #verbose!(value = true) ⇒ Object
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, **) @delegate = delegate end |
Instance Attribute Details
#delegate ⇒ Object (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
#call ⇒ Object
23 24 25 |
# File 'lib/console/output/wrapper.rb', line 23 def call(...) @delegate.call(...) end |
#last_output ⇒ Object
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 |