Module: CapybaraAtoms
Relationships & Source Files | |
Defined in: | lib/capybara/selenium/patches/atoms.rb |
Instance Method Summary
- #read_atom(function) private
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. ("../../atoms/#{key}.min.js", __FILE__)) rescue Errno::ENOENT super end end @atoms[function] end