Class: Gamefic::Scene::YesOrNo

Inherits:
MultipleChoice show all
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

Methods inherited from MultipleChoice

#finish, #start

Methods inherited from Base

#finish, finish_blocks, inherited, on_finish, on_start, props_class, #rename, rename, #start, start_blocks, #to_hash, #type

Constructor Details

#initializeYesOrNo

Returns a new instance of YesOrNo.



10
11
12
13
# File 'lib/gamefic/scene/yes_or_no.rb', line 10

def initialize(...)
  super
  props.options
end

Class Method Details

.typeObject



15
16
17
# File 'lib/gamefic/scene/yes_or_no.rb', line 15

def self.type
  'YesOrNo'
end