Sha256: 59899626796c01392426743caacc75756c3df7d9f7312f2ae8ba86d7af5da717

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

module Capybara::Accessible
  class Driver
    def self.wrap(underlying_driver)
      Class.new(underlying_driver) { include InstanceMethods }
    end

    module InstanceMethods
      attr_writer :accessible

      def visit(path)
        super
        Auditor.audit(self)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capybara-accessible-0.3.0 lib/capybara/accessible/driver.rb