Module: Rufus::Navigation

Includes:
PageNavigation
Defined in:
lib/rufus/navigation.rb

Instance Method Summary collapse

Instance Method Details

#on(cls) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/rufus/navigation.rb', line 7

def on(cls)
screen = cls.new

wait = 0
until wait == 59 do

  if screen.active?
    return screen
  else
    wait += 1
  end
end

  raise "Expected #{cls} to be active"
end