Class: Antigravity::Skill
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#instructions ⇒ Object
readonly
Returns the value of attribute instructions.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path) ⇒ Skill
constructor
A new instance of Skill.
Methods inherited from Base
Methods included from Emojifiable
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.(path) parse_skill_file end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
8 9 10 |
# File 'lib/antigravity/skill.rb', line 8 def description @description end |
#instructions ⇒ Object (readonly)
Returns the value of attribute instructions.
8 9 10 |
# File 'lib/antigravity/skill.rb', line 8 def instructions @instructions end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/antigravity/skill.rb', line 8 def name @name end |
#path ⇒ Object (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 |