Sha256: d9740f204171808fab80001a5e1ac61bd404b5e6ba73a0a6b0958b118b1ccdb1
Contents?: true
Size: 219 Bytes
Versions: 18
Compression:
Stored size: 219 Bytes
Contents
#! /usr/bin/env ruby def main() if (ARGV.length == 0) word = STDIN.gets.chomp else word = ARGV[0] end if word =~ /\d/ STDERR.puts "wrong word!" exit 1 else puts word + "s" end end main
Version data entries
18 entries across 6 versions & 1 rubygems