Class: ExtPP::Platform

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

Instance Method Summary collapse

Instance Method Details

#dynamic_library_extensionObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/extpp/platform.rb', line 3

def dynamic_library_extension
  case RUBY_PLATFORM
  when /windows/, /mingw/
    "dll"
  when /darwin/
    "dylib"
  else
    RbConfig::CONFIG["DLEXT"]
  end
end