Sha256: 3978c7dd8bf3915ba8faca7fcd0346eace98ee64138109b096203f545f1b7d24
Contents?: true
Size: 966 Bytes
Versions: 3
Compression:
Stored size: 966 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require File.join(File.dirname(__FILE__), "../lib/kagami") program = File.basename($PROGRAM_NAME) USAGE = <<-EOD usage: #{program} text example: $ #{program} "Java and you >>>> Ruby <<<< The internet" The internet >>> Ruby >>>> Java and you $ #{program} <<END Firewall || +--------+ +-------+ || The Internet | server +--+ proxy +----||======☁======= +--------+ +-------+ || || END Firewall || The Internet || +-------+ +--------+ =======☁======||----+ proxy +--+ server | || +-------+ +--------+ || $ cat hoge.txt | #{program} (reversed hoge.txt every one line) EOD # When no args on interactive shell if $stdin.tty? && ARGV.empty? puts USAGE exit 1 end # Fetch source text source = ARGV.shift || ARGF.read Kagami.run(source)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kagami-0.1.3 | bin/kagami |
kagami-0.1.0 | bin/kagami |
kagami-0.0.1 | bin/kagami |