Class: NowNext
- Inherits:
-
Object
show all
- Includes:
- Timings
- Defined in:
- lib/bbc/now_next.rb
Overview
Lists what is airing now and next accross BBC Radio and Television stations
Defined Under Namespace
Classes: Programme
Instance Method Summary
collapse
Methods included from Timings
how_long_between, time_now
Constructor Details
#initialize(io = STDOUT) ⇒ NowNext
Returns a new instance of NowNext.
8
9
10
|
# File 'lib/bbc/now_next.rb', line 8
def initialize(io = STDOUT)
@io = io
end
|
Instance Method Details
#radio_next ⇒ Object
33
34
35
36
37
38
|
# File 'lib/bbc/now_next.rb', line 33
def radio_next
@fmt = '%-32s %s'
load 'radio'
on_next
end
|
#radio_now ⇒ Object
26
27
28
29
30
31
|
# File 'lib/bbc/now_next.rb', line 26
def radio_now
@fmt = '%-32s %s'
load 'radio'
on_now
end
|
#tv_next ⇒ Object
19
20
21
22
23
24
|
# File 'lib/bbc/now_next.rb', line 19
def tv_next
@fmt = '%-18s %s'
load 'tv'
on_next
end
|
#tv_now ⇒ Object
12
13
14
15
16
17
|
# File 'lib/bbc/now_next.rb', line 12
def tv_now
@fmt = '%-18s %s'
load 'tv'
on_now
end
|