Class: Core::Game::Thought
Instance Attribute Summary collapse
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, proc) ⇒ Thought
constructor
A new instance of Thought.
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 |