Method: Thor::Base::ClassMethods#basename
- Defined in:
- lib/thor/base/class_methods.rb
#basename ⇒ Object (protected)
The basename of the program invoking the thor class.
611 612 613 |
# File 'lib/thor/base/class_methods.rb', line 611 def basename File.basename($PROGRAM_NAME).split(" ").first end |