Class: MinifyHtmlLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/minify_html.rb

Class Method Summary collapse

Class Method Details

.lib_pathObject


13
14
15
# File 'lib/minify_html.rb', line 13

def self.lib_path
  File.join(__dir__, [operating_system, '-ruby', RUBY_VERSION.split('.')[0...-1].join('.')].join(''))
end

.operating_systemObject


4
5
6
7
8
9
10
11
# File 'lib/minify_html.rb', line 4

def self.operating_system
  case RbConfig::CONFIG['host_os'].downcase
  when /linux|bsd|solaris/ then 'linux'
  when /darwin/ then 'macos'
  when /mingw|mswin/ then 'windows'
  else 'unknown'
  end
end