Class: Core::Game::Thought

Inherits:
Object show all
Defined in:
lib/game/mind.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, proc) ⇒ Thought

Returns a new instance of Thought.



5
6
7
# File 'lib/game/mind.rb', line 5

def initialize(text, proc)
  @text, @proc = text, proc
end

Instance Attribute Details

#procObject (readonly)

Returns the value of attribute proc.



4
5
6
# File 'lib/game/mind.rb', line 4

def proc
  @proc
end

#textObject (readonly)

Returns the value of attribute text.



4
5
6
# File 'lib/game/mind.rb', line 4

def text
  @text
end