Module: CommandKit::ProgramName::ClassMethods
- Defined in:
- lib/command_kit/program_name.rb
Overview
Class-level methods.
Constant Summary collapse
- IGNORED_PROGRAM_NAMES =
List of
$PROGRAM_NAME
s that should be ignored. [ '-e', # ruby -e "..." 'irb', # running in irb 'rspec' # running in rspec ]
Instance Method Summary collapse
-
#program_name ⇒ String?
The current program name (
$PROGRAM_NAME
).
Instance Method Details
#program_name ⇒ String?
The current program name ($PROGRAM_NAME
).
52 53 54 |
# File 'lib/command_kit/program_name.rb', line 52 def program_name $PROGRAM_NAME unless IGNORED_PROGRAM_NAMES.include?($PROGRAM_NAME) end |