Class: NuWav::RiffChunk

Inherits:
Object
  • Object
show all
Defined in:
lib/nu_wav/chunk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



58
59
60
# File 'lib/nu_wav/chunk.rb', line 58

def id
  @id
end

#riff_typeObject

Returns the value of attribute riff_type.



58
59
60
# File 'lib/nu_wav/chunk.rb', line 58

def riff_type
  @riff_type
end

#sizeObject

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_sObject



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