Class: Pikuri::Tool::SkillCatalog::Empty

Inherits:
Pikuri::Tool::SkillCatalog show all
Defined in:
lib/pikuri/tool/skill_catalog.rb

Overview

Null-object catalog. The EMPTY constant is the singleton instance used as the default for Agent#initialize; constructing additional instances is harmless but pointless.

Constant Summary

Constants inherited from Pikuri::Tool::SkillCatalog

MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH, SKILL_DIR_NAMES

Instance Method Summary collapse

Methods inherited from Pikuri::Tool::SkillCatalog

#empty?, #format_for_prompt

Instance Method Details

#get(_name) ⇒ nil

Returns:

  • (nil)


149
150
151
# File 'lib/pikuri/tool/skill_catalog.rb', line 149

def get(_name)
  nil
end

#listArray<Skill>

Returns always empty.

Returns:

  • (Array<Skill>)

    always empty



144
145
146
# File 'lib/pikuri/tool/skill_catalog.rb', line 144

def list
  [].freeze
end