Sha256: e0b692a1b2388af0ffc12f88c141a443e858796e5dd81521686e89955d906b44
Contents?: true
Size: 349 Bytes
Versions: 38
Compression:
Stored size: 349 Bytes
Contents
module TestFiles Dir.chdir(File.dirname(__FILE__)) do Dir['files/*.{html,xhtml,xml}'].each do |fname| if RUBY_VERSION >= '1.9' const_set fname[%r!/(\w+)\.\w+$!, 1].upcase, File.open(fname, 'r:ascii-8bit') { |f| f.read } else const_set fname[%r!/(\w+)\.\w+$!, 1].upcase, File.read(fname) end end end end
Version data entries
38 entries across 38 versions & 2 rubygems