Class: Gamefic::Scene::YesOrNo
- Inherits:
-
MultipleChoice
- Object
- Base
- MultipleChoice
- Gamefic::Scene::YesOrNo
- Defined in:
- lib/gamefic/scene/yes_or_no.rb
Overview
A specialized MultipleChoice scene that only accepts Yes or No.
Instance Attribute Summary
Attributes inherited from Base
#actor, #context, #name, #narrative, #props
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ YesOrNo
constructor
A new instance of YesOrNo.
Methods inherited from MultipleChoice
Methods inherited from Base
#finish, finish_blocks, inherited, on_finish, on_start, props_class, #rename, rename, #start, start_blocks, #to_hash, #type
Constructor Details
#initialize ⇒ YesOrNo
Returns a new instance of YesOrNo.
10 11 12 13 |
# File 'lib/gamefic/scene/yes_or_no.rb', line 10 def initialize(...) super props. end |
Class Method Details
.type ⇒ Object
15 16 17 |
# File 'lib/gamefic/scene/yes_or_no.rb', line 15 def self.type 'YesOrNo' end |