Class: Gamefic::SceneData::MultipleChoice
- Defined in:
- lib/gamefic/scene_data/multiple_choice.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
- #invalid_message ⇒ Object
-
#number ⇒ Object
Returns the value of attribute number.
-
#selection ⇒ Object
Returns the value of attribute selection.
Attributes inherited from Base
Instance Method Summary collapse
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
6 7 8 |
# File 'lib/gamefic/scene_data/multiple_choice.rb', line 6 def index @index end |
#invalid_message ⇒ Object
14 15 16 |
# File 'lib/gamefic/scene_data/multiple_choice.rb', line 14 def ||= 'That is not a valid choice.' end |
#number ⇒ Object
Returns the value of attribute number.
5 6 7 |
# File 'lib/gamefic/scene_data/multiple_choice.rb', line 5 def number @number end |
#selection ⇒ Object
Returns the value of attribute selection.
4 5 6 |
# File 'lib/gamefic/scene_data/multiple_choice.rb', line 4 def selection @selection end |
Instance Method Details
#options ⇒ Object
8 9 10 |
# File 'lib/gamefic/scene_data/multiple_choice.rb', line 8 def ||= [] end |
#prompt ⇒ Object
11 12 13 |
# File 'lib/gamefic/scene_data/multiple_choice.rb', line 11 def prompt @prompt ||= 'Enter a choice:' end |