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
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def assets_path @assets_path end |
#base_path ⇒ Object
Returns the value of attribute base_path
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def base_path @base_path end |
#content ⇒ Object
Returns the value of attribute content
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def content @content end |
#description ⇒ Object
Returns the value of attribute description
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def description @description end |
#frontmatter ⇒ Object
Returns the value of attribute frontmatter
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def frontmatter @frontmatter end |
#layer ⇒ Object
Returns the value of attribute layer
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def layer @layer end |
#md_file_path ⇒ Object
Returns the value of attribute md_file_path
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def md_file_path @md_file_path end |
#name ⇒ Object
Returns the value of attribute name
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def name @name end |
#references_path ⇒ Object
Returns the value of attribute references_path
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def references_path @references_path end |
#scripts_path ⇒ Object
Returns the value of attribute scripts_path
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def scripts_path @scripts_path end |
#tags ⇒ Object
Returns the value of attribute tags
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def @tags end |
#version ⇒ Object
Returns the value of attribute version
18 19 20 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18 def version @version end |
Instance Method Details
#has_assets? ⇒ Boolean
37 38 39 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 37 def has_assets? File.directory?(assets_path) end |
#has_references? ⇒ Boolean
41 42 43 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 41 def has_references? File.directory?(references_path) end |
#has_scripts? ⇒ Boolean
33 34 35 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 33 def has_scripts? File.directory?(scripts_path) end |
#to_h ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 45 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 |