Class: Ask::Skills::Skill
- Inherits:
-
Data
- Object
- Data
- Ask::Skills::Skill
- Defined in:
- lib/ask/skills/skill.rb
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.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description
3 4 5 |
# File 'lib/ask/skills/skill.rb', line 3 def description @description end |
#instructions ⇒ Object (readonly)
Returns the value of attribute instructions
3 4 5 |
# File 'lib/ask/skills/skill.rb', line 3 def instructions @instructions end |
#name ⇒ Object (readonly)
Returns the value of attribute name
3 4 5 |
# File 'lib/ask/skills/skill.rb', line 3 def name @name end |
#source ⇒ Object (readonly)
Returns the value of attribute source
3 4 5 |
# File 'lib/ask/skills/skill.rb', line 3 def source @source end |
Instance Method Details
#to_prompt_entry ⇒ Object
8 9 10 |
# File 'lib/ask/skills/skill.rb', line 8 def to_prompt_entry "- **#{name}**: #{description}" end |
#to_s ⇒ Object
4 5 6 |
# File 'lib/ask/skills/skill.rb', line 4 def to_s "#{name}: #{description}" end |