Class: AI::Commands::Command
- Inherits:
-
Struct
- Object
- Struct
- AI::Commands::Command
- Defined in:
- lib/commands.rb
Instance Attribute Summary collapse
-
#arg_complete ⇒ Object
Returns the value of attribute arg_complete.
-
#available ⇒ Object
Returns the value of attribute available.
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#name ⇒ Object
Returns the value of attribute name.
-
#run ⇒ Object
Returns the value of attribute run.
Instance Method Summary collapse
Instance Attribute Details
#arg_complete ⇒ Object
Returns the value of attribute arg_complete
4 5 6 |
# File 'lib/commands.rb', line 4 def arg_complete @arg_complete end |
#available ⇒ Object
Returns the value of attribute available
4 5 6 |
# File 'lib/commands.rb', line 4 def available @available end |
#desc ⇒ Object
Returns the value of attribute desc
4 5 6 |
# File 'lib/commands.rb', line 4 def desc @desc end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/commands.rb', line 4 def name @name end |
#run ⇒ Object
Returns the value of attribute run
4 5 6 |
# File 'lib/commands.rb', line 4 def run @run end |
Instance Method Details
#available?(app) ⇒ Boolean
5 |
# File 'lib/commands.rb', line 5 def available?(app) = available.nil? || available.call(app) |