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
16 17 18 |
# File 'lib/llm/repl/command.rb', line 16 def description @description end |
#index ⇒ Object
Returns the value of attribute index
16 17 18 |
# File 'lib/llm/repl/command.rb', line 16 def index @index end |
#name ⇒ Object
Returns the value of attribute name
16 17 18 |
# File 'lib/llm/repl/command.rb', line 16 def name @name end |
#options ⇒ Object
Returns the value of attribute options
16 17 18 |
# File 'lib/llm/repl/command.rb', line 16 def @options end |
#type ⇒ Object
Returns the value of attribute type
16 17 18 |
# File 'lib/llm/repl/command.rb', line 16 def type @type end |
#value ⇒ Object
Returns the value of attribute value
16 17 18 |
# File 'lib/llm/repl/command.rb', line 16 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.
32 33 34 |
# File 'lib/llm/repl/command.rb', line 32 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
26 27 28 |
# File 'lib/llm/repl/command.rb', line 26 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.
19 20 21 |
# File 'lib/llm/repl/command.rb', line 19 def required? [:required] == true end |