diff options
author | Patrick Simianer <p@simianer.de> | 2014-01-29 19:14:08 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-01-29 19:14:08 +0100 |
commit | 68acbb9a0c7967cb90a7e3756fc94fdd8a73d154 (patch) | |
tree | 3b445131dcb203e94473ae1d8aa82a1798585276 /firstisupper | |
parent | 49158e721bfaf6423dca9fc633873218f691c83a (diff) |
make use of nlp_ruby, LICENSE
Diffstat (limited to 'firstisupper')
-rwxr-xr-x | firstisupper | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/firstisupper b/firstisupper index 4278334..516dd8a 100755 --- a/firstisupper +++ b/firstisupper @@ -1,8 +1,7 @@ #!/usr/bin/env ruby -def downcase?(string) - string[/[[:lower:]]/] -end +require 'nlp_ruby' + while line = STDIN.gets puts line.strip if downcase? line[0] |