Skip to content

Instantly share code, notes, and snippets.

@raa0121
Created June 6, 2012 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save raa0121/2881066 to your computer and use it in GitHub Desktop.
Save raa0121/2881066 to your computer and use it in GitHub Desktop.
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