Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 61962b01e2
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.29 kb
module TestFiles
Dir.chdir(File.dirname(__FILE__)) do
Dir['files/*.{html,xhtml,xml}'].each do |fname|
const_set fname[%r!/(\w+)\.\w+$!, 1].upcase, IO.read(fname)
end
end
end
class String
unless defined? "".lines
alias lines to_a
end
end
Jump to Line
Something went wrong with that request. Please try again.