Class: Antigravity::Skill

Inherits:
Base
  • Object
show all
Defined in:
lib/antigravity/skill.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

inherited

Methods included from Emojifiable

#emoji, included

Constructor Details

#initialize(path) ⇒ Skill

Returns a new instance of Skill.



10
11
12
13
# File 'lib/antigravity/skill.rb', line 10

def initialize(path)
  @path = File.expand_path(path)
  parse_skill_file
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



8
9
10
# File 'lib/antigravity/skill.rb', line 8

def description
  @description
end

#instructionsObject (readonly)

Returns the value of attribute instructions.



8
9
10
# File 'lib/antigravity/skill.rb', line 8

def instructions
  @instructions
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/antigravity/skill.rb', line 8

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



8
9
10
# File 'lib/antigravity/skill.rb', line 8

def path
  @path
end

Class Method Details

.load(path) ⇒ Object



15
16
17
# File 'lib/antigravity/skill.rb', line 15

def self.load(path)
  new(path)
end