module CapybaraAtoms

Private Instance Methods

read_atom(function) click to toggle source
Calls superclass method
# File lib/capybara/selenium/patches/atoms.rb, line 6
def read_atom(function)
  @atoms ||= Hash.new do |hash, key|
    hash[key] = begin
                  File.read(File.expand_path("../../atoms/#{key}.min.js", __FILE__))
                rescue Errno::ENOENT
                  super
                end
  end
  @atoms[function]
end