Class: Playwright::CLI::Commands::Edit::Command
- Inherits:
-
Object
- Object
- Playwright::CLI::Commands::Edit::Command
- Includes:
- Utils::Display, Utils::FileManager
- Defined in:
- lib/playwright/cli/commands/edit/command.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name) ⇒ Command
constructor
A new instance of Command.
- #run ⇒ Object
Methods included from Utils::FileManager
Methods included from Utils::Display
Constructor Details
#initialize(name) ⇒ Command
Returns a new instance of Command.
15 16 17 |
# File 'lib/playwright/cli/commands/edit/command.rb', line 15 def initialize(name) @name = name end |
Class Method Details
.run(name) ⇒ Object
11 12 13 |
# File 'lib/playwright/cli/commands/edit/command.rb', line 11 def self.run(name) new(name).run end |
Instance Method Details
#run ⇒ Object
19 20 21 |
# File 'lib/playwright/cli/commands/edit/command.rb', line 19 def run file_manager.open_editor script_name: @name end |