Class: Mireru::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/mireru/command.rb

Constant Summary collapse

USAGE =
"Usage: mireru [OPTION]... [FILE_OR_DIRECTORY]..."

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommand

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)
  options = parse_options(arguments)

  files = files_from_arguments(arguments)

  window = Window.new(files, options)

  window.run
end