lib/remedy.rb in remedy-0.0.4.pre vs lib/remedy.rb in remedy-0.0.4
- old
+ new
@@ -1,9 +1,15 @@
-%w{
- version ansi characters console resized_console content header footer
- interaction key keyboard partial view viewport
-}.each do |lib|
- require "remedy/#{lib}"
+module Remedy
+ module_function
+
+ def libs
+ %w{
+ version ansi characters console console_resized content header footer
+ interaction key keyboard partial view viewport
+ }
+ end
end
-module Remedy
+Remedy.libs.each do |lib|
+ require "remedy/#{lib}"
end
+