Sha256: 859a640d0aa84286ef2e2b17e98000cbf5520b4bd80b686c66ad6b72b8ad989d
Contents?: true
Size: 496 Bytes
Versions: 11
Compression:
Stored size: 496 Bytes
Contents
module Bake class Doc def self.show link = File.expand_path(File.dirname(__FILE__)+"/../../../doc/index.html") if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ system "start #{link}" elsif RUBY_PLATFORM =~ /darwin/ system "open #{link}" elsif RUBY_PLATFORM =~ /linux|bsd/ system "xdg-open #{link}" else puts "Please open #{link} manually in your browser." end ExitHelper.exit(0) end end end
Version data entries
11 entries across 11 versions & 1 rubygems