Class: TyranoDsl::Elements::Scene
- Inherits:
-
Object
- Object
- TyranoDsl::Elements::Scene
- Defined in:
- lib/tyrano_dsl/elements/scene.rb
Overview
A declared scene
Instance Attribute Summary collapse
- #labels ⇒ Array<String> readonly
- #name ⇒ String readonly
- #target_name ⇒ String readonly
Instance Method Summary collapse
-
#initialize(name, index) ⇒ Scene
constructor
A new instance of Scene.
Constructor Details
#initialize(name, index) ⇒ Scene
Returns a new instance of Scene.
15 16 17 18 19 |
# File 'lib/tyrano_dsl/elements/scene.rb', line 15 def initialize(name, index) @name = name @target_name = "scene#{index}" @labels = [] end |
Instance Attribute Details
#labels ⇒ Array<String> (readonly)
11 12 13 |
# File 'lib/tyrano_dsl/elements/scene.rb', line 11 def labels @labels end |
#name ⇒ String (readonly)
7 8 9 |
# File 'lib/tyrano_dsl/elements/scene.rb', line 7 def name @name end |
#target_name ⇒ String (readonly)
9 10 11 |
# File 'lib/tyrano_dsl/elements/scene.rb', line 9 def target_name @target_name end |