module NativePackageInstaller::Platform
Constants
- PLATFORM_CLASSES
Public Class Methods
Source
# File lib/native-package-installer/platform.rb, line 25 def detect PLATFORM_CLASSES.reverse_each do |platform_class| return platform_class.new if platform_class.current_platform? end Unknown.new end
Source
# File lib/native-package-installer/platform.rb, line 21 def register(platform_class) PLATFORM_CLASSES << platform_class end