Class: KairosMcp::AstNode

Inherits:
Struct
  • Object
show all
Defined in:
lib/kairos_mcp/skill_contexts.rb

Overview

Minimal AST node structure for partial formalization

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



109
110
111
# File 'lib/kairos_mcp/skill_contexts.rb', line 109

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



109
110
111
# File 'lib/kairos_mcp/skill_contexts.rb', line 109

def options
  @options
end

#source_spanObject

Returns the value of attribute source_span

Returns:

  • (Object)

    the current value of source_span



109
110
111
# File 'lib/kairos_mcp/skill_contexts.rb', line 109

def source_span
  @source_span
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



109
110
111
# File 'lib/kairos_mcp/skill_contexts.rb', line 109

def type
  @type
end

Instance Method Details

#to_hObject



110
111
112
113
114
115
116
117
# File 'lib/kairos_mcp/skill_contexts.rb', line 110

def to_h
  {
    type: type,
    name: name,
    options: options,
    source_span: source_span
  }
end