Class: OllamaAgent::RuntimeCommandSystem::AST::ArgumentNode
- Inherits:
-
Object
- Object
- OllamaAgent::RuntimeCommandSystem::AST::ArgumentNode
- Defined in:
- lib/ollama_agent/runtime_command_system/ast.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #incomplete? ⇒ Boolean
-
#initialize(value:, position:, type: :string) ⇒ ArgumentNode
constructor
A new instance of ArgumentNode.
Constructor Details
#initialize(value:, position:, type: :string) ⇒ ArgumentNode
Returns a new instance of ArgumentNode.
33 34 35 36 37 |
# File 'lib/ollama_agent/runtime_command_system/ast.rb', line 33 def initialize(value:, position:, type: :string) @value = value.to_s @position = position.to_i @type = type.to_sym end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
31 32 33 |
# File 'lib/ollama_agent/runtime_command_system/ast.rb', line 31 def position @position end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
31 32 33 |
# File 'lib/ollama_agent/runtime_command_system/ast.rb', line 31 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
31 32 33 |
# File 'lib/ollama_agent/runtime_command_system/ast.rb', line 31 def value @value end |
Instance Method Details
#incomplete? ⇒ Boolean
39 40 41 |
# File 'lib/ollama_agent/runtime_command_system/ast.rb', line 39 def incomplete? value.empty? end |