Class: Cabin::Subscriber
- Inherits:
-
Object
- Object
- Cabin::Subscriber
- Defined in:
- lib/cabin/subscriber.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
- #<<(data) ⇒ Object
-
#initialize(output, options = {}) ⇒ Subscriber
constructor
A new instance of Subscriber.
Constructor Details
#initialize(output, options = {}) ⇒ Subscriber
Returns a new instance of Subscriber.
4 5 6 7 |
# File 'lib/cabin/subscriber.rb', line 4 def initialize(output, = {}) @output = output @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/cabin/subscriber.rb', line 3 def @options end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
2 3 4 |
# File 'lib/cabin/subscriber.rb', line 2 def output @output end |
Instance Method Details
#<<(data) ⇒ Object
9 10 11 |
# File 'lib/cabin/subscriber.rb', line 9 def <<(data) @output << data end |