Class: Fictive::Scene
- Inherits:
-
Object
- Object
- Fictive::Scene
- Defined in:
- lib/fictive/story.rb
Instance Attribute Summary collapse
-
#passage ⇒ Object
readonly
Returns the value of attribute passage.
Instance Method Summary collapse
- #choices ⇒ Object
-
#initialize(metadata, passage) ⇒ Scene
constructor
A new instance of Scene.
- #path ⇒ Object
Constructor Details
#initialize(metadata, passage) ⇒ Scene
Returns a new instance of Scene.
5 6 7 8 |
# File 'lib/fictive/story.rb', line 5 def initialize(, passage) = @passage = passage end |
Instance Attribute Details
#passage ⇒ Object (readonly)
Returns the value of attribute passage.
3 4 5 |
# File 'lib/fictive/story.rb', line 3 def passage @passage end |
Instance Method Details
#choices ⇒ Object
14 15 16 |
# File 'lib/fictive/story.rb', line 14 def choices .fetch(:choices, []) end |
#path ⇒ Object
10 11 12 |
# File 'lib/fictive/story.rb', line 10 def path .fetch(:path) end |