Class: Onceler::NamedRecording

Inherits:
Recording show all
Defined in:
lib/onceler/recorder.rb

Instance Attribute Summary collapse

Attributes inherited from Recording

#block

Instance Method Summary collapse

Constructor Details

#initialize(block, name = nil) ⇒ NamedRecording

Returns a new instance of NamedRecording.



172
173
174
175
# File 'lib/onceler/recorder.rb', line 172

def initialize(block, name = nil)
  super(block)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



170
171
172
# File 'lib/onceler/recorder.rb', line 170

def name
  @name
end

Instance Method Details

#prepare_medium!(tape) ⇒ Object



177
178
179
# File 'lib/onceler/recorder.rb', line 177

def prepare_medium!(tape)
  tape.__prepare_recording(self)
end

#record_onto!(tape) ⇒ Object



181
182
183
# File 'lib/onceler/recorder.rb', line 181

def record_onto!(tape)
  tape.send(@name)
end