File: subscriber.rb

package info (click to toggle)
ruby-cabin 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 272 kB
  • sloc: ruby: 1,306; makefile: 12
file content (12 lines) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
class Cabin::Subscriber
  attr :output
  attr :options
  def initialize(output, options = {})
    @output = output
    @options = options
  end

  def <<(data)
    @output << data
  end
end