Class: Gamefic::Active::Cue

Inherits:
Object
  • Object
show all
Defined in:
lib/gamefic/active/cue.rb

Overview

The data that actors use to configure a Take.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scene, **context) ⇒ Cue

Returns a new instance of Cue.

Parameters:

  • scene (Symbol)


15
16
17
18
# File 'lib/gamefic/active/cue.rb', line 15

def initialize scene, **context
  @scene = scene
  @context = context
end

Instance Attribute Details

#contextHash (readonly)

Returns:

  • (Hash)


12
13
14
# File 'lib/gamefic/active/cue.rb', line 12

def context
  @context
end

#sceneSymbol (readonly)

Returns:

  • (Symbol)


9
10
11
# File 'lib/gamefic/active/cue.rb', line 9

def scene
  @scene
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/gamefic/active/cue.rb', line 20

def to_s
  scene.to_s
end