Class: Gamefic::Scene::Base
- Inherits:
-
Object
- Object
- Gamefic::Scene::Base
- Defined in:
- lib/gamefic/scene/base.rb
Overview
The Base Scene is not intended for instantiation. Other Scene classes should inherit from it.
Instance Method Summary collapse
- #finish(actor, input) ⇒ Object
-
#prompt_for(actor) ⇒ String
Get the prompt to be displayed to the user when accepting input.
- #start(actor) ⇒ Object
- #type ⇒ Object
Instance Method Details
#finish(actor, input) ⇒ Object
10 11 |
# File 'lib/gamefic/scene/base.rb', line 10 def finish actor, input end |
#prompt_for(actor) ⇒ String
Get the prompt to be displayed to the user when accepting input.
16 17 18 |
# File 'lib/gamefic/scene/base.rb', line 16 def prompt_for actor '>' end |
#start(actor) ⇒ Object
7 8 |
# File 'lib/gamefic/scene/base.rb', line 7 def start actor end |
#type ⇒ Object
20 21 22 |
# File 'lib/gamefic/scene/base.rb', line 20 def type self.class.to_s.split('::').last end |