Class Burn::Disc

Abstract

This class references a whole disc.

Inherits from: Object ← Burn::Disc .

Included in: Burn .

Index: STATUS_APPENDABLE STATUS_BLANK STATUS_EMPTY STATUS_FULL STATUS_UNREADY add_session each_session new remove_session sessions

Class methods
newnew
 

Creates a new disc (for DAO recording).

Instance methods
add_sessionadd_session(session, pos)
 

Adds a session to a disc at a specific position, increasing the sessions' reference count.

  • session: a session to add to the disk (as a Burn::Session object).

  • pos: position to add at (Burn::POS_END is "at the end").

  • Returns: true on success, false otherwise.

each_sessioneach_session { |session| ... }
 

Calls the block for each session in the disc, passing a reference to a Burn::Session object as parameter.

  • Returns: always nil.

remove_sessionremove_session(session)
 

Removes a session from a disc.

  • session: a session to remove from the disk (as a Burn::Session object).

  • Returns: true on success, false otherwise.

sessionssessions
 

Gets a list of all sessions in the disc.

Constants
STATUS_APPENDABLE

There is an incomplete disc in the drive.

STATUS_BLANK

The drive holds a blank disc.

STATUS_EMPTY

There is no disc at all in the drive.

STATUS_FULL

There is a disc with data on it in the drive.

STATUS_UNREADY

The current status is not yet known.