Sha256: 5939514c1998737f21e89bade3588338c588e2ea397d6ddf97d1a86b98250b7e

Contents?: true

Size: 465 Bytes

Versions: 30

Compression:

Stored size: 465 Bytes

Contents

module Main
  def Main.create(&block)
    factory(&block)
  end

  def Main.factory(&block)
    Program.factory(&block)
  end

  def Main.new(*args, &block)
    program = factory(&block).build(*args)
    program.new()
  end

  def Main.run(*args, &block)
    program = factory(&block).build(*args)
    main = program.new()
    main.run()
  end
end

module Kernel
private
  def Main(*args, &block)
    Main.run(*args, &block)
  end
  alias_method 'main', 'Main'
end

Version data entries

30 entries across 29 versions & 2 rubygems

Version Path
main-6.3.0 lib/main/factories.rb
main-6.2.3 lib/main/factories.rb
main-6.2.2 lib/main/factories.rb
main-6.2.1 lib/main/factories.rb
main-6.2.0 lib/main/factories.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/factories.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/factories.rb
main-6.1.0 lib/main/factories.rb
main-6.0.0 lib/main/factories.rb
main-5.3.2 lib/main/factories.rb
main-5.3.1 lib/main/factories.rb
main-5.2.0 lib/main/factories.rb
main-5.1.1 lib/main/factories.rb
main-5.1.0 lib/main/factories.rb
main-5.0.1 lib/main/factories.rb
main-5.0.0 lib/main/factories.rb
main-4.8.1 lib/main/factories.rb
main-4.8.0 lib/main/factories.rb
main-4.7.7 lib/main/factories.rb
main-4.7.6 lib/main/factories.rb