Commit 122bdea7 authored by Takayuki Kamiyama's avatar Takayuki Kamiyama 🐉

Update, inside change.

parent f0dbb93d
......@@ -9,7 +9,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Encoding.default_internal = 'UTF-8'
# zinbeijett function
class Zin
module Engine
module_function
def search_txt
require_relative 'prop/all'
All.search
......@@ -50,40 +52,47 @@ class Zin
end
end
one = ARGV[0]
z = /\A[-][z]\z/
a = /\A[-][a]\z/
n = /\A[-][n]\z/
o = /\A[-][o]\z/
d = /\A[-][d]\z/
g = /\A[-][g]\z/
m = /\A[-][m]\z/
c = /\A[-][c]\z/
zi = Zin.new
if one.nil?
puts 'engine is Zinbeijett, I made in 2016.'.toutf8.freeze
elsif one.match?(z)
zi.search_txt
elsif one.match?(a)
zi.search_txi
elsif one.match?(n)
zi.search_txe
elsif one.match?(o)
zi.search_txs
elsif one.match?(g)
zi.search_gc
elsif one.match?(m)
zi.search_mail
elsif one.match?(d)
zi.search_druby_erb
elsif one.match?(c)
zi.count_search
else
puts 'Not other arguments!'.toutf8.freeze
# Super Class
class Wing
include Engine
def self.right
one = ARGV[0]
z = /\A[-][z]\z/
a = /\A[-][a]\z/
n = /\A[-][n]\z/
o = /\A[-][o]\z/
d = /\A[-][d]\z/
g = /\A[-][g]\z/
m = /\A[-][m]\z/
c = /\A[-][c]\z/
if one.nil?
puts 'engine is Zinbeijett, I made in 2016.'.toutf8.freeze
elsif one.match?(z)
zi.search_txt
elsif one.match?(a)
zi.search_txi
elsif one.match?(n)
zi.search_txe
elsif one.match?(o)
zi.search_txs
elsif one.match?(g)
zi.search_gc
elsif one.match?(m)
zi.search_mail
elsif one.match?(d)
zi.search_druby_erb
elsif one.match?(c)
zi.count_search
else
puts 'Not other arguments!'.toutf8.freeze
end
end
end
Wing.right
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