Sha256: fca27ff5b58f8f828ebc17f77750d3d46c9bcaedf8f9425bc7e81e9c4b72f45b
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 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' autoload :EmailInterface, 'interface/email_interface' def self.for(type, &blk) case type when :rails2 Rails2Interface.new(&blk) when :merb MerbInterface.new(&blk) when :rack RackInterface.new(&blk) when :email EmailInterface.new(&blk) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joshbuddy-usher-0.4.2 | lib/usher/interface.rb |
joshbuddy-usher-0.4.3 | lib/usher/interface.rb |