Method: CommandKit::OpenApp#open_app_for
- Defined in:
- lib/command_kit/open_app.rb
#open_app_for(file_or_uri) ⇒ Boolean?
Opens a file or URI using the system's preferred application for that file type or URI scheme.
65 66 67 68 69 |
# File 'lib/command_kit/open_app.rb', line 65 def open_app_for(file_or_uri) if @open_command system(@open_command,file_or_uri.to_s) end end |