Sha256: fe5e25ed3fe7d772fad311308e804dd92c1be2127b3bd45b8b1375c561872d9a
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
require "capybara/dsl" # Autoload all predefined adapters Dir[File.join(File.dirname(__FILE__), 'adapters', '*.rb')].each { |f| require f } module StarParty module Adapters def self.look_up(name) const_name = name.to_s.gsub(/_/, ' ').split(' ').map(&:capitalize).join const_get(const_name).tap do |adapter| adapter.class_eval do include Capybara::DSL end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
star_party-1.0.1 | lib/star_party/adapters.rb |