123456789_123456789_123456789_123456789_123456789_

Module: CapybaraAtoms

Relationships & Source Files
Defined in: lib/capybara/selenium/patches/atoms.rb

Instance Method Summary

Instance Method Details

#read_atom(function) (private)

[ GitHub ]

  
# 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