Top Level Namespace

Defined Under Namespace

Modules: Microcalibration Classes: Boy, Girl

Instance Method Summary collapse

Instance Method Details

#runObject



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/microcalibration.rb', line 39

def run

boy = Boy.new
girl=Girl.new

callcc{|c|$start=c}
boy.id

if girl.ioi?
    callcc{|c|$ct=c}
    boy.ct
    if girl.comply?
       boy.ii
       $ct.call
    else
      $start.call  
    end  
else
    $start.call
end  

end