Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FooooScriptインタプリタっぽいもの
#/usr/bin/env ruby
# code:utf-8
def foooo
File::open(ARGV[0]){|f|
f.each do |line|
unless(/fo+/i =~ line)
print "Error"
else
print "foooo"
end
end
print "\n"
}
end
foooo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.