Sha256: 6c5ab9597c6969c6c9c514f50504f6bdf6ea6430b96ee9ecff15462379f83c60
Contents?: true
Size: 339 Bytes
Versions: 21
Compression:
Stored size: 339 Bytes
Contents
Dir.glob(File.expand_path('../../helpers/**/*.rb', __FILE__)).each do |file| unless file == __FILE__ require file module_name = [] File.read(file).each_line do |line| if line =~ /module\ / module_name << line.gsub(/module\ /, '').strip end end include module_name.join('::').constantize end end
Version data entries
21 entries across 21 versions & 2 rubygems