Sha256: c7efde6e1c3403253fca5f077ab67fc6a144e80adabc2b65e307a0c4480c40ab

Contents?: true

Size: 215 Bytes

Versions: 3

Compression:

Stored size: 215 Bytes

Contents

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

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

  private

  attr_reader :wrapper, :output
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logspot-0.4.0 lib/lo_gspot/output/wrap.rb
logspot-0.3.0 lib/lo_gspot/output/wrap.rb
logspot-0.2.0 lib/lo_gspot/output/wrap.rb