Class: CommandLine::Application
- Inherits:
-
Object
- Object
- CommandLine::Application
- Defined in:
- ext/make_commandline_gemproof.rb
Overview
Makes the inherited method not be so strict checking the app name
Class Method Summary collapse
Class Method Details
.inherited(child_class) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'ext/make_commandline_gemproof.rb', line 8 def inherited(child_class) @@appname = caller[0][/.*:/][0..-2] @@child_class = child_class normalized_appname = @@appname.gsub(/^.*\//,""); normalized_dollar0 = $0.gsub(/^.*\//,""); if normalized_appname == normalized_dollar0 __set_auto_run end end |
.old_inherited ⇒ Object
6 |
# File 'ext/make_commandline_gemproof.rb', line 6 alias old_inherited inherited |