Commit f0dbb93d authored by Takayuki Kamiyama's avatar Takayuki Kamiyama 🐉

inside chenge.

parent 41d80b23
......@@ -146,41 +146,48 @@ module Zinbeijett
end
end
v = /\Aversion\z/
ve = /\A[-][v]\z/
h = /\A[-][l]\z/
he = /\Alicense\z/
s = /\Astart\z/
so = /\A[-][s]\z/
co = /\A[-][h]\z/
com = /\Ahelp\z/
one = ARGV[0]
include Zinbeijett
if one.nil?
soft
elsif one.match?(v)
version
elsif one.match?(ve)
version
elsif one.match?(he)
licen
elsif one.match?(h)
licen
elsif one.match?(s)
start
elsif one.match?(so)
start
elsif one.match?(co)
help
elsif one.match?(com)
help
else
puts 'Please choose an option.'.toutf8
# Super class
class Engine
include Zinbeijett
def self.main
v = /\Aversion\z/
ve = /\A[-][v]\z/
h = /\A[-][l]\z/
he = /\Alicense\z/
s = /\Astart\z/
so = /\A[-][s]\z/
co = /\A[-][h]\z/
com = /\Ahelp\z/
one = ARGV[0]
if one.nil?
soft
elsif one.match?(v)
version
elsif one.match?(ve)
version
elsif one.match?(he)
licen
elsif one.match?(h)
licen
elsif one.match?(s)
start
elsif one.match?(so)
start
elsif one.match?(co)
help
elsif one.match?(com)
help
else
puts 'Please choose an option.'.toutf8
end
end
end
Engine.main
GC.start
__END__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment