Class: PhusionPassenger::NativeSupportLoader

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

Instance Method Summary collapse

Instance Method Details

#startObject



31
32
33
34
35
36
37
# File 'lib/phusion_passenger/native_support.rb', line 31

def start
	require 'phusion_passenger'
	load_from_source_dir ||
	load_from_load_path ||
	load_from_home ||
	compile_and_load
end

#supported?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/phusion_passenger/native_support.rb', line 27

def supported?
	return !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx"
end