Class: RailsAgents::SkillDeclaration

Inherits:
Data
  • Object
show all
Defined in:
lib/rails_agents/skill_declaration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



4
5
6
# File 'lib/rails_agents/skill_declaration.rb', line 4

def key
  @key
end

#optionsObject (readonly)

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



4
5
6
# File 'lib/rails_agents/skill_declaration.rb', line 4

def options
  @options
end

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


5
# File 'lib/rails_agents/skill_declaration.rb', line 5

def custom? = key.to_s.start_with?("skill_")

#nameObject



6
# File 'lib/rails_agents/skill_declaration.rb', line 6

def name = custom? ? key.to_s : key.to_sym