Method: RUTL::Interface::Base#find_state
- Defined in:
- lib/rutl/interface/base.rb
#find_state(target_states) ⇒ Object
TODO: Is this needed? I not only find the view but also make sure the urls match. Even though that’s what finding views means?
57 58 59 60 61 62 63 64 |
# File 'lib/rutl/interface/base.rb', line 57 def find_state(target_states) target_states.each do |state| next unless state.url == current_view.url view = find_view(state) return view if view.loaded? end false end |