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

Version Path
uttk-0.3.6.1 test/fixtures/demo/command-tutorial/steps/7/pluralizer.rb
uttk-0.3.5.0 test/fixtures/demo/command-tutorial/steps/6/pluralizer.rb
uttk-0.3.1.2 test/fixtures/demo/command-tutorial/steps/5.1/pluralizer.rb
uttk-0.3.5.0 test/fixtures/demo/command-tutorial/steps/5.1/pluralizer.rb
uttk-0.3.5.0 test/fixtures/demo/command-tutorial/steps/6.1/pluralizer.rb
uttk-0.3.6.1 test/fixtures/demo/command-tutorial/steps/6/pluralizer.rb
uttk-0.3.6.1 test/fixtures/demo/command-tutorial/steps/5.1/pluralizer.rb
uttk-0.3.6.1 test/fixtures/demo/command-tutorial/steps/6.1/pluralizer.rb
uttk-0.3.1.2 test/fixtures/demo/command-tutorial/steps/6/pluralizer.rb
uttk-0.3.1.2 test/fixtures/demo/filter-tutorial/pluralizer.rb
uttk-0.3.6.1 test/fixtures/demo/filter-tutorial/pluralizer.rb
uttk-0.3.1.2 test/fixtures/demo/command-tutorial/steps/7/pluralizer.rb
uttk-0.3.1.2 test/fixtures/demo/command-tutorial/steps/6.1/pluralizer.rb
uttk-0.3.5.0 test/fixtures/demo/filter-tutorial/pluralizer.rb
uttk-0.3.5.0 test/fixtures/demo/command-tutorial/steps/7/pluralizer.rb
uttk-0.4.6.1 test/fixtures/demo/filter-tutorial/pluralizer.rb
uttk-0.4.5.0 test/fixtures/demo/filter-tutorial/pluralizer.rb
uttk-0.4.6.2 test/fixtures/demo/filter-tutorial/pluralizer.rb