Sha256: 3712ca01f8e9df68fe4ebb7c061df0513cd8be601638f7a1aa690239197b75e9

Contents?: true

Size: 411 Bytes

Versions: 7

Compression:

Stored size: 411 Bytes

Contents

$:.unshift File.dirname(__FILE__)

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
joshbuddy-usher-0.0.2 lib/usher/interface.rb
joshbuddy-usher-0.0.3 lib/usher/interface.rb
joshbuddy-usher-0.1.0 lib/usher/interface.rb
joshbuddy-usher-0.1.1 lib/usher/interface.rb
joshbuddy-usher-0.1.2 lib/usher/interface.rb
joshbuddy-usher-0.2.0 lib/usher/interface.rb
joshbuddy-usher-0.2.1 lib/usher/interface.rb