Method: Rtml::Test::Screen#variant_with_hotkey

Defined in:
lib/rtml/test/screen.rb

#variant_with_hotkey(which) ⇒ Object



21
22
23
24
# File 'lib/rtml/test/screen.rb', line 21

def variant_with_hotkey(which)
  possible_variants.each { |variant| return variant[:uri] if variant[:key] == which }
  nil
end