Class: TyranoDsl::Elements::Scene

Inherits:
Object
  • Object
show all
Defined in:
lib/tyrano_dsl/elements/scene.rb

Overview

A declared scene

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, index) ⇒ Scene

Returns a new instance of Scene.

Parameters:

  • name (String)
  • index (Integer)


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

#labelsArray<String> (readonly)

Returns:

  • (Array<String>)


11
12
13
# File 'lib/tyrano_dsl/elements/scene.rb', line 11

def labels
  @labels
end

#nameString (readonly)

Returns:

  • (String)


7
8
9
# File 'lib/tyrano_dsl/elements/scene.rb', line 7

def name
  @name
end

#target_nameString (readonly)

Returns:

  • (String)


9
10
11
# File 'lib/tyrano_dsl/elements/scene.rb', line 9

def target_name
  @target_name
end