Class: Packcr::BroadCast
- Inherits:
-
Object
- Object
- Packcr::BroadCast
- Defined in:
- lib/packcr/broadcast.rb
Instance Method Summary collapse
- #<<(obj) ⇒ Object
-
#initialize(*arrays) ⇒ BroadCast
constructor
A new instance of BroadCast.
- #to_ary ⇒ Object
Constructor Details
#initialize(*arrays) ⇒ BroadCast
Returns a new instance of BroadCast.
3 4 5 |
# File 'lib/packcr/broadcast.rb', line 3 def initialize(*arrays) @arrays = arrays end |
Instance Method Details
#<<(obj) ⇒ Object
7 8 9 10 11 |
# File 'lib/packcr/broadcast.rb', line 7 def <<(obj) @arrays.each do |array| array << obj end end |
#to_ary ⇒ Object
13 14 15 |
# File 'lib/packcr/broadcast.rb', line 13 def to_ary @arrays end |