Class: Rea::Command::Search
- Inherits:
-
Object
- Object
- Rea::Command::Search
- Includes:
- Utils
- Defined in:
- lib/rea/command/search.rb
Overview
Search publications on the online libraries
SYNOPSIS
#{command_name} [options] ARG
OPTIONS #summarized_options
Constant Summary
Constants included from Utils
Instance Method Summary collapse
-
#execute(args) ⇒ Object
Run the command.
- #run(*args) ⇒ Object
Methods included from Utils
Instance Method Details
#execute(args) ⇒ Object
Run the command
44 45 46 47 48 |
# File 'lib/rea/command/search.rb', line 44 def execute(args) raise Quickl::Help if args.size > 1 @query[@mainarg] = args.first if args.size == 1 @provider.search(@query) end |
#run(*args) ⇒ Object
39 40 41 |
# File 'lib/rea/command/search.rb', line 39 def run(*args) puts pretty(super, @keep) end |