Class: KairosMcp::AnthropicSkillParser::SkillEntry
- Inherits:
-
Struct
- Object
- Struct
- KairosMcp::AnthropicSkillParser::SkillEntry
- Defined in:
- lib/kairos_mcp/anthropic_skill_parser.rb
Overview
Struct representing a parsed skill entry
Instance Attribute Summary collapse
-
#assets_path ⇒ Object
Returns the value of attribute assets_path.
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#content ⇒ Object
Returns the value of attribute content.
-
#description ⇒ Object
Returns the value of attribute description.
-
#frontmatter ⇒ Object
Returns the value of attribute frontmatter.
-
#layer ⇒ Object
Returns the value of attribute layer.
-
#md_file_path ⇒ Object
Returns the value of attribute md_file_path.
-
#name ⇒ Object
Returns the value of attribute name.
-
#references_path ⇒ Object
Returns the value of attribute references_path.
-
#scripts_path ⇒ Object
Returns the value of attribute scripts_path.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#assets_path ⇒ Object
Returns the value of attribute assets_path
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def assets_path @assets_path end |
#base_path ⇒ Object
Returns the value of attribute base_path
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def base_path @base_path end |
#content ⇒ Object
Returns the value of attribute content
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def content @content end |
#description ⇒ Object
Returns the value of attribute description
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def description @description end |
#frontmatter ⇒ Object
Returns the value of attribute frontmatter
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def frontmatter @frontmatter end |
#layer ⇒ Object
Returns the value of attribute layer
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def layer @layer end |
#md_file_path ⇒ Object
Returns the value of attribute md_file_path
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def md_file_path @md_file_path end |
#name ⇒ Object
Returns the value of attribute name
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def name @name end |
#references_path ⇒ Object
Returns the value of attribute references_path
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def references_path @references_path end |
#scripts_path ⇒ Object
Returns the value of attribute scripts_path
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def scripts_path @scripts_path end |
#tags ⇒ Object
Returns the value of attribute tags
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def @tags end |
#version ⇒ Object
Returns the value of attribute version
20 21 22 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20 def version @version end |
Instance Method Details
#has_assets? ⇒ Boolean
39 40 41 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 39 def has_assets? File.directory?(assets_path) end |
#has_references? ⇒ Boolean
43 44 45 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 43 def has_references? File.directory?(references_path) end |
#has_scripts? ⇒ Boolean
35 36 37 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 35 def has_scripts? File.directory?(scripts_path) end |
#to_h ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 47 def to_h { name: name, description: description, version: version, layer: layer, tags: , content: content, has_scripts: has_scripts?, has_assets: has_assets?, has_references: has_references? } end |