Class: RailsAgents::SkillDeclaration
- Inherits:
-
Data
- Object
- Data
- RailsAgents::SkillDeclaration
- Defined in:
- lib/rails_agents/skill_declaration.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key
4 5 6 |
# File 'lib/rails_agents/skill_declaration.rb', line 4 def key @key end |
#options ⇒ Object (readonly)
Returns the value of attribute options
4 5 6 |
# File 'lib/rails_agents/skill_declaration.rb', line 4 def @options end |
Instance Method Details
#custom? ⇒ Boolean
5 |
# File 'lib/rails_agents/skill_declaration.rb', line 5 def custom? = key.to_s.start_with?("skill_") |
#name ⇒ Object
6 |
# File 'lib/rails_agents/skill_declaration.rb', line 6 def name = custom? ? key.to_s : key.to_sym |