Class: RTV::Program
- Inherits:
-
Object
- Object
- RTV::Program
- Defined in:
- lib/rtv.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
Instance Method Summary collapse
- #<<(show) ⇒ Object
-
#initialize ⇒ Program
constructor
A new instance of Program.
Constructor Details
#initialize ⇒ Program
Returns a new instance of Program.
58 59 60 |
# File 'lib/rtv.rb', line 58 def initialize @channel = {} end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
56 57 58 |
# File 'lib/rtv.rb', line 56 def channel @channel end |
Instance Method Details
#<<(show) ⇒ Object
61 62 63 64 |
# File 'lib/rtv.rb', line 61 def << show @channel[show.channel] ||= [] @channel[show.channel] << show end |