Module: ProMotion::Support
- Included in:
- DelegateModule, ScreenModule, ScreenNavigation
- Defined in:
- lib/ProMotion/support/support.rb
Instance Method Summary collapse
Instance Method Details
#app ⇒ Object
4 5 6 |
# File 'lib/ProMotion/support/support.rb', line 4 def app UIApplication.sharedApplication end |
#app_delegate ⇒ Object
8 9 10 |
# File 'lib/ProMotion/support/support.rb', line 8 def app_delegate UIApplication.sharedApplication.delegate end |
#app_window ⇒ Object
12 13 14 |
# File 'lib/ProMotion/support/support.rb', line 12 def app_window UIApplication.sharedApplication.delegate.window end |
#try(method, *args) ⇒ Object
16 17 18 |
# File 'lib/ProMotion/support/support.rb', line 16 def try(method, *args) send(method, *args) if respond_to?(method) end |