Class: NuWav::RiffChunk
- Inherits:
-
Object
- Object
- NuWav::RiffChunk
- Defined in:
- lib/nu_wav/chunk.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#riff_type ⇒ Object
Returns the value of attribute riff_type.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(riff_name, riff_length, riff_type) ⇒ RiffChunk
constructor
A new instance of RiffChunk.
- #to_s ⇒ Object
Constructor Details
#initialize(riff_name, riff_length, riff_type) ⇒ RiffChunk
Returns a new instance of RiffChunk.
60 61 62 |
# File 'lib/nu_wav/chunk.rb', line 60 def initialize(riff_name, riff_length, riff_type) @id, @size, @riff_type = riff_name, riff_length, riff_type end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
58 59 60 |
# File 'lib/nu_wav/chunk.rb', line 58 def id @id end |
#riff_type ⇒ Object
Returns the value of attribute riff_type.
58 59 60 |
# File 'lib/nu_wav/chunk.rb', line 58 def riff_type @riff_type end |
#size ⇒ Object
Returns the value of attribute size.
58 59 60 |
# File 'lib/nu_wav/chunk.rb', line 58 def size @size end |
Instance Method Details
#to_s ⇒ Object
64 65 66 |
# File 'lib/nu_wav/chunk.rb', line 64 def to_s "<chunk type:riff id:#{@id} size:#{@size} type:#{@riff_type} />" end |