Class: Gamefic::Standard::Container

Inherits:
Receptacle show all
Includes:
Lockable, Openable
Defined in:
lib/gamefic/standard/entities/container.rb

Overview

An openable and lockable receptacle.

Instance Attribute Summary

Attributes included from Lockable

#lock_key

Attributes included from Enterable

#enterable

Instance Method Summary collapse

Methods included from Lockable

#lock, #lock_key?, #locked=, #locked?, #open=, #unlock, #unlocked?

Methods included from Openable

#close, #closed?, #open, #open=, #open?

Methods included from Enterable

#enterable?

Instance Method Details

#accessibleObject



11
12
13
# File 'lib/gamefic/standard/entities/container.rb', line 11

def accessible
  open? ? super : []
end