Class: OllamaAgent::RuntimeCommandSystem::AST::ArgumentNode

Inherits:
Object
  • Object
show all
Defined in:
lib/ollama_agent/runtime_command_system/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#positionObject (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

#typeObject (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

#valueObject (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

Returns:

  • (Boolean)


39
40
41
# File 'lib/ollama_agent/runtime_command_system/ast.rb', line 39

def incomplete?
  value.empty?
end