Class: Core::Game::Mind
Instance Method Summary collapse
- #contrive(thought) ⇒ Object
- #forget(thought) ⇒ Object
-
#initialize ⇒ Mind
constructor
A new instance of Mind.
- #thoughts ⇒ Object
Constructor Details
#initialize ⇒ Mind
Returns a new instance of Mind.
11 12 13 |
# File 'lib/game/mind.rb', line 11 def initialize @thoughts = [] end |
Instance Method Details
#contrive(thought) ⇒ Object
14 15 16 |
# File 'lib/game/mind.rb', line 14 def contrive(thought) @thoughts.push(thought) end |
#forget(thought) ⇒ Object
17 18 19 |
# File 'lib/game/mind.rb', line 17 def forget(thought) @thoughts.delete(thought) end |
#thoughts ⇒ Object
20 21 22 |
# File 'lib/game/mind.rb', line 20 def thoughts return @thoughts end |