Class: Yatte::Run
- Inherits:
-
Object
- Object
- Yatte::Run
- Defined in:
- lib/yatte/run.rb
Class Method Summary collapse
Class Method Details
.call(argv = ARGV) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/yatte/run.rb', line 5 def self.call(argv = ARGV) args = argv.dup directory = nil if args.length == 1 && File.directory?(args.first) directory = File.(args.shift) end editor = Editor.new(filenames: args, directory: directory) editor.run end |