Method: Warg::Command::Name.from_relative_script_path
- Defined in:
- lib/warg.rb
.from_relative_script_path(path) ⇒ Object
1680 1681 1682 1683 1684 |
# File 'lib/warg.rb', line 1680 def self.from_relative_script_path(path) script_name = path.to_s.chomp File.extname(path) new(script_name: script_name.tr("_", "-")) end |