Module: Splat
- Defined in:
- lib/splat.rb
Class Method Summary collapse
Class Method Details
.platform ⇒ Object
31 32 33 |
# File 'lib/splat.rb', line 31 def self.platform @platform end |
.try_load(feature, dependencies = {}) ⇒ Object
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/splat.rb', line 35 def self.try_load feature, dependencies={} begin dependencies.each {|gem_name, require_parameter| require require_parameter } require "splat/#{@platform}_#{feature}" rescue Exception => e $stderr.puts e $stderr.puts "for #{feature} support with splat on #{@platform}:" dependencies.each {|gem_name, require_parameter| $stderr.puts " * gem install #{gem_name}" } end end |