Class: Pikuri::Skill::Catalog::Empty

Inherits:
Pikuri::Skill::Catalog show all
Defined in:
lib/pikuri/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::Skill::Catalog

MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH, SKILL_DIR_NAMES

Instance Method Summary collapse

Methods inherited from Pikuri::Skill::Catalog

#empty?, #format_for_prompt

Instance Method Details

#get(_name) ⇒ nil

Returns:

  • (nil)


148
149
150
# File 'lib/pikuri/skill/catalog.rb', line 148

def get(_name)
  nil
end

#listArray<Skill>

Returns always empty.

Returns:

  • (Array<Skill>)

    always empty



143
144
145
# File 'lib/pikuri/skill/catalog.rb', line 143

def list
  [].freeze
end