Class: LLM::Repl::Command::Parameter Private
- Inherits:
-
Struct
- Object
- Struct
- LLM::Repl::Command::Parameter
- Defined in:
- lib/llm/repl/command.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#index ⇒ Object
Returns the value of attribute index.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #optional? ⇒ Boolean private
-
#required! ⇒ void
private
Mark the parameter as required.
- #required? ⇒ Boolean private
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
27 28 29 |
# File 'lib/llm/repl/command.rb', line 27 def description @description end |
#index ⇒ Object
Returns the value of attribute index
27 28 29 |
# File 'lib/llm/repl/command.rb', line 27 def index @index end |
#name ⇒ Object
Returns the value of attribute name
27 28 29 |
# File 'lib/llm/repl/command.rb', line 27 def name @name end |
#options ⇒ Object
Returns the value of attribute options
27 28 29 |
# File 'lib/llm/repl/command.rb', line 27 def @options end |
#type ⇒ Object
Returns the value of attribute type
27 28 29 |
# File 'lib/llm/repl/command.rb', line 27 def type @type end |
#value ⇒ Object
Returns the value of attribute value
27 28 29 |
# File 'lib/llm/repl/command.rb', line 27 def value @value end |
Instance Method Details
#optional? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 |
# File 'lib/llm/repl/command.rb', line 43 def optional? !required? end |
#required! ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Mark the parameter as required
37 38 39 |
# File 'lib/llm/repl/command.rb', line 37 def required! [:required] = true end |
#required? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
30 31 32 |
# File 'lib/llm/repl/command.rb', line 30 def required? [:required] == true end |