Sha256: 472d575afceaa5a4e4d2434db9b01d5a2de0015bb280701cd533a3574a65cb5f

Contents?: true

Size: 393 Bytes

Versions: 31

Compression:

Stored size: 393 Bytes

Contents

module Granify
  module Helper
    def self.load(klass, args = nil)
      begin
        klass_instance = Granify::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

31 entries across 31 versions & 2 rubygems

Version Path
evertils-0.1.20 lib/helper.rb
evertils-0.1.19 lib/helper.rb
evertils-0.1.18 lib/helper.rb
evertils-0.1.17 lib/helper.rb
evertils-0.1.15 lib/helper.rb
evertils-0.1.14 lib/helper.rb
evertils-0.1.13 lib/helper.rb
evertils-0.1.12 lib/helper.rb
evertils-0.1.11 lib/helper.rb
evertils-0.1.9 lib/helper.rb
evertils-0.1.8 lib/helper.rb
evertils-0.1.7 lib/helper.rb
evertils-0.1.6 lib/helper.rb
evertils-0.1.5 lib/helper.rb
evertils-0.1.4 lib/helper.rb
evertils-0.1.3 lib/helper.rb
evertils-0.1.2 lib/helper.rb
evertils-0.1.1 lib/helper.rb
evertils-0.1.0 lib/helper.rb
evertils-0.0.11 lib/helper.rb