Class: Onceler::Recording

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

Direct Known Subclasses

NamedRecording

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(block) ⇒ Recording

Returns a new instance of Recording.



158
159
160
# File 'lib/onceler/recorder.rb', line 158

def initialize(block)
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



156
157
158
# File 'lib/onceler/recorder.rb', line 156

def block
  @block
end

Instance Method Details

#prepare_medium!(tape) ⇒ Object



162
# File 'lib/onceler/recorder.rb', line 162

def prepare_medium!(tape); end

#record_onto!(tape) ⇒ Object



164
165
166
# File 'lib/onceler/recorder.rb', line 164

def record_onto!(tape)
  tape.__record(self)
end