Class: Mireru::Command
- Inherits:
-
Object
- Object
- Mireru::Command
- Defined in:
- lib/mireru/command.rb
Constant Summary collapse
- USAGE =
"Usage: mireru [OPTION]... [FILE_OR_DIRECTORY]..."
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Command
constructor
A new instance of Command.
- #run(arguments) ⇒ Object
Constructor Details
#initialize ⇒ Command
Returns a new instance of Command.
32 33 34 |
# File 'lib/mireru/command.rb', line 32 def initialize @logger = Logger.new end |
Class Method Details
.run(*arguments) ⇒ Object
27 28 29 |
# File 'lib/mireru/command.rb', line 27 def run(*arguments) new.run(arguments) end |
Instance Method Details
#run(arguments) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/mireru/command.rb', line 36 def run(arguments) = (arguments) files = files_from_arguments(arguments) window = Window.new(files, ) window.run end |