Class: Gamefic::Callback
- Inherits:
-
Object
- Object
- Gamefic::Callback
- Defined in:
- lib/gamefic/callback.rb
Instance Method Summary collapse
-
#initialize(narrative, code) ⇒ Callback
constructor
A new instance of Callback.
- #run(*args) ⇒ Object
Constructor Details
#initialize(narrative, code) ⇒ Callback
Returns a new instance of Callback.
7 8 9 10 |
# File 'lib/gamefic/callback.rb', line 7 def initialize narrative, code @narrative = narrative @code = code end |