Class: UdbGen::Subcommand
- Inherits:
-
Object
- Object
- UdbGen::Subcommand
- Extended by:
- T::Helpers, T::Sig
- Includes:
- TTY::Option
- Defined in:
- lib/udb-gen/subcommand.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, desc:) ⇒ Subcommand
constructor
A new instance of Subcommand.
- #run(argv) ⇒ Object
Constructor Details
#initialize(name:, desc:) ⇒ Subcommand
Returns a new instance of Subcommand.
24 25 26 27 |
# File 'lib/udb-gen/subcommand.rb', line 24 def initialize(name:, desc:) @name = name @desc = desc end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
21 22 23 |
# File 'lib/udb-gen/subcommand.rb', line 21 def desc @desc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'lib/udb-gen/subcommand.rb', line 20 def name @name end |
Instance Method Details
#run(argv) ⇒ Object
31 |
# File 'lib/udb-gen/subcommand.rb', line 31 def run(argv); end |