lib/imgurr/platform.rb
# Public: returns the command used to open a file or URL
# for the current platform.
#
# Currently only supports MacOS X and Linux with `xdg-open`.
#
# Returns a String with the bin
returns the command used to open a file or URL
for the current platform.

Currently only supports MacOS X and Linux with `xdg-open`.

Returns a String with the bin
returns the command used to open a file or URL for the current platform . Currently only supports MacOS X and Linux with ` xdg - open ` . Returns a String with the bin
def open_command
        if darwin?
          'open'
        elsif windows?
          'start'
        else
          'xdg-open'
        end
      end
def open_command if darwin? 'open' elsif windows? 'start' else 'xdg-open' end end
Public: returns the command used to open a file or URL
for the current platform.
Public : returns the command used to open a file or URL for the current platform .