Created
June 6, 2012 09:58
-
-
Save raa0121/2881066 to your computer and use it in GitHub Desktop.
FooooScriptインタプリタっぽいもの
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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