Class: Bashly::Script::Argument
- Defined in:
- lib/bashly/script/argument.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#help, #initialize, #method_missing, #optional, #respond_to_missing?, #summary
Methods included from Renderable
Constructor Details
This class inherits a constructor from Bashly::Script::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bashly::Script::Base
Instance Method Details
#usage_string ⇒ Object
4 5 6 |
# File 'lib/bashly/script/argument.rb', line 4 def usage_string required ? name.upcase : "[#{name.upcase}]" end |