Class: RubySkills::Manifest::Skill

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_skills/manifest.rb

Overview

Declared skill entry loaded from a Skillfile.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Attribute Details

#githubString?

Returns GitHub repository in owner/name form.

Returns:

  • (String, nil)

    GitHub repository in owner/name form



25
26
27
28
29
30
31
# File 'lib/ruby_skills/manifest.rb', line 25

Skill = Struct.new(
  :name,
  :github,
  :path,
  :version,
  keyword_init: true
)

#nameString

Returns skill identifier.

Returns:

  • (String)

    skill identifier



25
26
27
28
29
30
31
# File 'lib/ruby_skills/manifest.rb', line 25

Skill = Struct.new(
  :name,
  :github,
  :path,
  :version,
  keyword_init: true
)

#pathString?

Returns local filesystem path to the skill.

Returns:

  • (String, nil)

    local filesystem path to the skill



25
26
27
28
29
30
31
# File 'lib/ruby_skills/manifest.rb', line 25

Skill = Struct.new(
  :name,
  :github,
  :path,
  :version,
  keyword_init: true
)

#versionString?

Returns optional pinned version.

Returns:

  • (String, nil)

    optional pinned version



25
26
27
28
29
30
31
# File 'lib/ruby_skills/manifest.rb', line 25

Skill = Struct.new(
  :name,
  :github,
  :path,
  :version,
  keyword_init: true
)