class MeteoPl::IO::ImageOpener

Attributes

path[RW]

Public Instance Methods

open() click to toggle source
# File lib/meteo_pl/io/image_opener.rb, line 6
def open
  case RbConfig::CONFIG['host_os']
  when /mswin|mingw|cygwin/
    `start #{path}`
  when /darwin/
    `open #{path}`
  when /linux|bsd/
    `xdg-open #{path}`
  end
end