class RemiAudio::Cue::File
- RemiAudio::Cue::File
- Reference
- Object
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.crConstructors
-
.new
Creates a new
RemiAudio::Cue::File
instance.
Instance Method Summary
-
#addTrack(&) : Track
Creates a new
Track
and yields it to the block. -
#filename : String
The associated filename.
-
#filename=(filename : String)
The associated filename.
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
-
#tracks : Array(Track)
The tracks that this file is used for to define.
-
#tracks=(tracks : Array(Track))
The tracks that this file is used for to define.
-
#type : Type
The type of file.
-
#type=(type : Type)
The type of file.
-
#write(io : IO) : Nil
Similar to
#to_s
, except this is properly indented for a CUE sheet and includes all relevant lines.
Constructor Detail
Instance Method Detail
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.
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>
Similar to #to_s
, except this is properly indented for a CUE sheet and
includes all relevant lines.