Sha256: 768fd74a609741936aa85cd0e44e38c596db2117702f1f44773398e3aa7cb5c5

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

module Ramdo
  module Ramdisk
    class Factory
      def self.get
        if RUBY_PLATFORM =~ /linux/
          LinuxWrapper.new
        elsif RUBY_PLATFORM =~ /darwin/
          DarwinWrapper.new
        else
          GenericWrapper.new
        end
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramdo-0.2.1 lib/ramdo/ramdisk/factory.rb