class RemiAudio::Cue::File

Overview

A virtual representation of the data for a FILE command within a CUE sheet. Note that in a CUE sheet, a single file can be used for multiple tracks.

Defined in:

remiaudio/cue.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Creates a new RemiAudio::Cue::File instance.


[View source]

Instance Method Detail

def addTrack(&) : Track #

Creates a new Track and yields it to the block. When the block exits, the new track is added to this RemiAudio::Cue::File. The new track is returned.


[View source]
def filename : String #

The associated filename.


[View source]
def filename=(filename : String) #

The associated filename.


[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def tracks : Array(Track) #

The tracks that this file is used for to define.


[View source]
def tracks=(tracks : Array(Track)) #

The tracks that this file is used for to define.


[View source]
def type : Type #

The type of file.


[View source]
def type=(type : Type) #

The type of file.


[View source]
def write(io : IO) : Nil #

Similar to #to_s, except this is properly indented for a CUE sheet and includes all relevant lines.


[View source]