lib/helper.rb in evertils-0.3.6 vs lib/helper.rb in evertils-0.3.7
- old
+ new
@@ -1,10 +1,10 @@
module Evertils
module Helper
def self.load(klass, args = nil)
begin
- klass_instance = Evertils::Helper.const_get(klass.capitalize)
-
+ klass_instance = Evertils::Helper.const_get(klass)
+
if klass_instance
if args.nil?
klass_instance.new
else
klass_instance.new(args)