Sha256: 35bad4c71783e516c9dd7aa2767407e20bc2034ed254121514f9a2b089eea376
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require 'kaboom/platform/base' require 'kaboom/platform/darwin' require 'kaboom/platform/windows' require 'kaboom/platform/linux' module Boom class Platform class << self def platform @platform ||= detect_platform.new end delegate :edit, :open, :copy, :to => :platform private def detect_platform if !!(RUBY_PLATFORM =~ /darwin/) Darwin elsif !!(RUBY_PLATFORM =~ /mswin|mingw/) Windows else Other end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kaboom-0.3.3 | lib/kaboom/platform.rb |