Sha256: 82339d1103bb0c4a80d4523cc6d81143d20123563872a17fbf414b1038b2c754

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 Bytes

Contents

module Main
  def Main.create *a, &b
    ::Main::Base.create(::Main::Base, *a, &b)
  end

  def Main.new *a, &b
    create(::Main::Base, &b).new *a
  end

  def Main.run argv = ARGV, env = ENV, opts = {}, &block
    Base.create(&block).new(argv, env, opts).run
  end

  module ::Kernel
    def Main argv = ARGV, env = ENV, opts = {}, &block
      ::Main.run argv, env, opts, &block
    end
    alias_method 'main', 'Main'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ThiagoLelis-backgroundjob-1.0.5 lib/main/factories.rb
ThiagoLelis-backgroundjob-1.0.6 lib/main/factories.rb