Sha256: e09264071da0c5e627972f5d0f7b0ddbad72eb0b8822a34b21fc61f82a43b1d1

Contents?: true

Size: 721 Bytes

Versions: 3

Compression:

Stored size: 721 Bytes

Contents

$:.unshift File.dirname(__FILE__)

class Usher
  module Interface
    autoload :Rails2_2Interface, 'interface/rails2_2_interface'
    autoload :Rails2_3Interface, 'interface/rails2_3_interface'
    autoload :MerbInterface, 'interface/merb_interface'
    autoload :RackInterface, 'interface/rack_interface'
    autoload :EmailInterface, 'interface/email_interface'
    
    def self.for(type, &blk)
      case type
      when :rails2_2
        Rails2_2Interface.new(&blk)
      when :rails2_3
        Rails2_3Interface.new(&blk)
      when :merb
        MerbInterface.new(&blk)
      when :rack
        RackInterface.new(&blk)
      when :email
        EmailInterface.new(&blk)
      end
      
    end
    
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
joshbuddy-usher-0.4.5 lib/usher/interface.rb
joshbuddy-usher-0.4.6 lib/usher/interface.rb
joshbuddy-usher-0.4.7 lib/usher/interface.rb