Sha256: 65b8569dc311232543ff7fa73ac370a45df7bea591afed8b1f2864b2120db96d

Contents?: true

Size: 396 Bytes

Versions: 23

Compression:

Stored size: 396 Bytes

Contents

module Evertils
  module Helper
    def self.load(klass, args = nil)
      begin
        klass_instance = Evertils::Helper.const_get(klass.capitalize)
        
        if klass_instance
          if args.nil?
            klass_instance.new
          else
            klass_instance.new(args)
          end
        end
      rescue => e
        Notify.error(e.message)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
evertils-0.3.6 lib/helper.rb
evertils-0.3.5 lib/helper.rb
evertils-0.3.4 lib/helper.rb
evertils-0.3.3 lib/helper.rb
evertils-0.3.2 lib/helper.rb
evertils-0.3.1.3 lib/helper.rb
evertils-0.3.1.2 lib/helper.rb
evertils-0.3.1.1 lib/helper.rb
evertils-0.3.1 lib/helper.rb
evertils-0.3.0 lib/helper.rb
evertils-0.2.9 lib/helper.rb
evertils-0.2.8.2 lib/helper.rb
evertils-0.2.8.1 lib/helper.rb
evertils-0.2.8 lib/helper.rb
evertils-0.2.7.2 lib/helper.rb
evertils-0.2.7.1 lib/helper.rb
evertils-0.2.7 lib/helper.rb
evertils-0.2.6 lib/helper.rb
evertils-0.2.5 lib/helper.rb
evertils-0.2.3 lib/helper.rb