Sha256: 5b2af4d9637258e6ae1cd6e793f8a9e14033090ca13edf39cda43904f695dc66

Contents?: true

Size: 252 Bytes

Versions: 6

Compression:

Stored size: 252 Bytes

Contents

class LoGspot::Output::Wrap
  def initialize(wrapper, output)
    @wrapper = wrapper
    @output = output
  end

  def puts(data)
    wrapper.call(output, data)
  end

  def inner_output
    output
  end

  private

  attr_reader :wrapper, :output
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
logspot-0.6.4 lib/lo_gspot/output/wrap.rb
logspot-0.6.3 lib/lo_gspot/output/wrap.rb
logspot-0.6.2 lib/lo_gspot/output/wrap.rb
logspot-0.6.1 lib/lo_gspot/output/wrap.rb
logspot-0.6.0 lib/lo_gspot/output/wrap.rb
logspot-0.5.0 lib/lo_gspot/output/wrap.rb