Class: Onceler::NamedRecording
- Defined in:
- lib/onceler/recorder.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Recording
Instance Method Summary collapse
-
#initialize(block, name = nil) ⇒ NamedRecording
constructor
A new instance of NamedRecording.
- #prepare_medium!(tape) ⇒ Object
- #record_onto!(tape) ⇒ Object
Constructor Details
#initialize(block, name = nil) ⇒ NamedRecording
Returns a new instance of NamedRecording.
146 147 148 149 |
# File 'lib/onceler/recorder.rb', line 146 def initialize(block, name = nil) super(block) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
144 145 146 |
# File 'lib/onceler/recorder.rb', line 144 def name @name end |
Instance Method Details
#prepare_medium!(tape) ⇒ Object
151 152 153 |
# File 'lib/onceler/recorder.rb', line 151 def prepare_medium!(tape) tape.__prepare_recording(self) end |
#record_onto!(tape) ⇒ Object
155 156 157 |
# File 'lib/onceler/recorder.rb', line 155 def record_onto!(tape) tape.send(@name) end |