class Object
Public Instance Methods
os()
click to toggle source
OS Detection
# File lib/rubygl.rb, line 5 def os @os ||= ( host_os = RbConfig::CONFIG['host_os'] case host_os when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ :windows when /darwin|mac os/ :macosx when /linux/ :linux when /solaris|bsd/ :unix else raise Error::WebDriverError, "Unknown OS: #{host_os.inspect}" end ) end
relative_path(resource_path)
click to toggle source
Expand Relative Path Into Absolute Path
# File lib/rubygl.rb, line 25 def relative_path(resource_path) File.join(File.dirname(File.expand_path(__FILE__)), resource_path) end