abstract class Worker::AudioPlayer::Audio
- Worker::AudioPlayer::Audio
- Reference
- Object
Direct Known Subclasses
Defined in:
worker/audio_player/audio.crConstructors
- .new(artist : String, title : String, duration : UInt32)
- .new(artist : String, title : String, duration : Time::Span)
Instance Method Summary
- #artist : String
- #destroy : Nil
- #duration : Time::Span
- #open(&block : IO -> Nil) : Nil
- #ready? : Bool
- #status : Status
- #title : String
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
Constructor Detail
Instance Method Detail
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>