Class: Gamefic::Scene::MultipleChoice::Input
- Inherits:
-
Object
- Object
- Gamefic::Scene::MultipleChoice::Input
- Defined in:
- lib/gamefic/scene/multiple_choice/input.rb
Instance Attribute Summary collapse
-
#choice ⇒ Object
readonly
Returns the value of attribute choice.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(raw, index, choice) ⇒ Input
constructor
A new instance of Input.
Constructor Details
#initialize(raw, index, choice) ⇒ Input
Returns a new instance of Input.
4 5 6 7 8 9 |
# File 'lib/gamefic/scene/multiple_choice/input.rb', line 4 def initialize raw, index, choice @raw = raw @index = index @number = index + 1 @choice = choice end |
Instance Attribute Details
#choice ⇒ Object (readonly)
Returns the value of attribute choice.
3 4 5 |
# File 'lib/gamefic/scene/multiple_choice/input.rb', line 3 def choice @choice end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
3 4 5 |
# File 'lib/gamefic/scene/multiple_choice/input.rb', line 3 def index @index end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
3 4 5 |
# File 'lib/gamefic/scene/multiple_choice/input.rb', line 3 def number @number end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
3 4 5 |
# File 'lib/gamefic/scene/multiple_choice/input.rb', line 3 def raw @raw end |