Class: Gamefic::Scene::MultipleChoice::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/gamefic/scene/multiple_choice/input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#choiceObject (readonly)

Returns the value of attribute choice.



3
4
5
# File 'lib/gamefic/scene/multiple_choice/input.rb', line 3

def choice
  @choice
end

#indexObject (readonly)

Returns the value of attribute index.



3
4
5
# File 'lib/gamefic/scene/multiple_choice/input.rb', line 3

def index
  @index
end

#numberObject (readonly)

Returns the value of attribute number.



3
4
5
# File 'lib/gamefic/scene/multiple_choice/input.rb', line 3

def number
  @number
end

#rawObject (readonly)

Returns the value of attribute raw.



3
4
5
# File 'lib/gamefic/scene/multiple_choice/input.rb', line 3

def raw
  @raw
end