Class: Gingham::MoveFrame
- Inherits:
-
Object
- Object
- Gingham::MoveFrame
- Defined in:
- lib/gingham/move_frame.rb
Instance Attribute Summary collapse
-
#actors ⇒ Object
Returns the value of attribute actors.
-
#index ⇒ Object
Returns the value of attribute index.
Instance Method Summary collapse
-
#initialize(index, actors) ⇒ MoveFrame
constructor
A new instance of MoveFrame.
Constructor Details
#initialize(index, actors) ⇒ MoveFrame
Returns a new instance of MoveFrame.
5 6 7 8 9 |
# File 'lib/gingham/move_frame.rb', line 5 def initialize(index, actors) @index = index # deep_copy actors @actors = Marshal.load Marshal.dump(actors) end |
Instance Attribute Details
#actors ⇒ Object
Returns the value of attribute actors.
3 4 5 |
# File 'lib/gingham/move_frame.rb', line 3 def actors @actors end |
#index ⇒ Object
Returns the value of attribute index.
3 4 5 |
# File 'lib/gingham/move_frame.rb', line 3 def index @index end |