Class: Entity

Inherits:
Explorer show all
Defined in:
lib/exploration/entity.rb

Instance Attribute Summary

Attributes inherited from Explorer

#resolve_strategy

Instance Method Summary collapse

Constructor Details

#initializeEntity

Returns a new instance of Entity.



5
6
7
# File 'lib/exploration/entity.rb', line 5

def initialize
  @explorers = Array.new
end

Instance Method Details

#add_explorer(exp) ⇒ Object

exp is an Explorer object



10
11
12
# File 'lib/exploration/entity.rb', line 10

def add_explorer exp
  @explorers << exp
end