Class: LoGspot::Output::Wrap
- Inherits:
-
Object
- Object
- LoGspot::Output::Wrap
- Defined in:
- lib/lo_gspot/output/wrap.rb
Instance Method Summary collapse
-
#initialize(wrapper, output) ⇒ Wrap
constructor
A new instance of Wrap.
- #inner_output ⇒ Object
- #puts(data) ⇒ Object
Constructor Details
#initialize(wrapper, output) ⇒ Wrap
Returns a new instance of Wrap.
2 3 4 5 |
# File 'lib/lo_gspot/output/wrap.rb', line 2 def initialize(wrapper, output) @wrapper = wrapper @output = output end |
Instance Method Details
#inner_output ⇒ Object
11 12 13 |
# File 'lib/lo_gspot/output/wrap.rb', line 11 def inner_output output end |
#puts(data) ⇒ Object
7 8 9 |
# File 'lib/lo_gspot/output/wrap.rb', line 7 def puts(data) wrapper.call(output, data) end |