Module: ConfBuilder

Defined in:
lib/talk.rb,
lib/track.rb,
lib/version.rb,
lib/conf_builder.rb,
lib/talk_factory.rb,
lib/lightning_talk.rb,
lib/sixty_min_talk.rb,
lib/thirty_min_talk.rb,
lib/fortyfive_min_talk.rb

Overview

Sub class for 45 min talk

Defined Under Namespace

Classes: Fortyfive_min_talk, Lightning_talk, Sixty_min_talk, Talk, TalkFactory, Thirty_min_talk, Track

Constant Summary collapse

VERSION =
"1.0.1"

Class Method Summary collapse

Class Method Details

.runObject



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/conf_builder.rb', line 22

def self.run
  begin
    list = YAML.load(File.open('talks.yml'))
    @@thirty_min_talks = []
    @@fortyfive_min_talks = []
    @@sixty_min_talks = []
    @@lightning_talks = []
    @@talk_factory = build_talk_factory(list)
    @@track1 = Track.new(@@talk_factory)
    @@track2 = Track.new(@@talk_factory)
    print
  rescue Exception => ex
    p "The conference builder program failed to complete successfully. Reason: #{ex.message}"
  end
end

.start(*args) ⇒ Object



18
19
20
# File 'lib/conf_builder.rb', line 18

def self.start(*args)
  run
end