Class: NowNext

Inherits:
Object
  • 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_nextObject



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_nowObject



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_nextObject



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_nowObject



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