Class: Playwright::CLI::Commands::Edit::Command

Inherits:
Object
  • Object
show all
Includes:
Utils::Display, Utils::FileManager
Defined in:
lib/playwright/cli/commands/edit/command.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils::FileManager

#file_manager

Methods included from Utils::Display

#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

#runObject



19
20
21
# File 'lib/playwright/cli/commands/edit/command.rb', line 19

def run
  file_manager.open_editor script_name: @name
end