Class: Entity
Direct Known Subclasses
BlockEntity, ClassEntity, MethodEntity, ModuleEntity, RootEntity
Instance Attribute Summary
Attributes inherited from Explorer
Instance Method Summary collapse
-
#add_explorer(exp) ⇒ Object
exp is an Explorer object.
-
#initialize ⇒ Entity
constructor
A new instance of Entity.
Constructor Details
#initialize ⇒ Entity
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 |