Skip to content

Instantly share code, notes, and snippets.

@sorah
Forked from raa0121/foooo.rb
Created July 7, 2012 17:49
Show Gist options
  • Save sorah/3067432 to your computer and use it in GitHub Desktop.
Save sorah/3067432 to your computer and use it in GitHub Desktop.
FooooScriptインタプリタっぽいもの
def foooo
File::open(ARGV[0]){|f|
f.each do |line|
unless(/fo.*+/i =~ line)
print "Error"
else
print "fooo"
end
end
print "\n"
}
end
fooo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment