Sha256: 4848e0a6e1090bb96f1bdc9ce971333eec5f09307825a91a75a49fe0c14f932a
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
command :info do |c| c.syntax = 'rubychina info [topic]' c.summary = 'Get information about a topic by its number' c.description = '' c.action do |args, options| say_error "Missing topic id" and abort unless @number = (Integer(args.first) rescue nil) session = get("/topics/#{@number}.json") describe session end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubychina-0.0.1 | ./lib/rubychina/commands/info.rb |