Sha256: 1b10b94497f2229e213abc6b7371322eabebcc89df3d1a8e53d430836f5c9157
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
require "nsrr/version" Nsrr::COMMANDS = { 'v' => :version } module Nsrr def self.launch(argv) self.send((Nsrr::COMMANDS[argv.first.to_s.scan(/\w/).first] || :help), argv) end def self.help(argv) puts <<-EOT Usage: nsrr COMMAND [ARGS] The most common nsrr commands are: [v]ersion Returns the version of nsrr gem Commands can be referenced by the first letter: Ex: `nsrr v`, for version EOT end def self.version(argv) puts "Nsrr #{Nsrr::VERSION::STRING}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nsrr-0.1.0.beta1 | lib/nsrr.rb |