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