Sha256: 71c782f5607efb8b53fe562a4699ca6c1f682d6d3c81579df92310a756a7cfd0

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

$:.unshift File.dirname(__FILE__)

class Usher
  module Interface
    autoload :Rails2Interface, 'interface/rails2_interface'
    autoload :MerbInterface, 'interface/merb_interface'
    autoload :RackInterface, 'interface/rack_interface'
    
    def self.for(type)
      case type
      when :rails2
        Rails2Interface.new
      when :merb
        MerbInterface.new
      when :rack
        RackInterface.new
      end
    end
    
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
joshbuddy-usher-0.2.2 lib/usher/interface.rb
joshbuddy-usher-0.3.0 lib/usher/interface.rb
joshbuddy-usher-0.3.2 lib/usher/interface.rb
joshbuddy-usher-0.3.3 lib/usher/interface.rb
joshbuddy-usher-0.3.4 lib/usher/interface.rb