Sha256: 8a734331bb6861cf03bcb82d79c96a53f3930203ddf28038fdd22f9fb1661d3c
Contents?: true
Size: 965 Bytes
Versions: 1
Compression:
Stored size: 965 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kagami-0.1.4 | bin/kagami |