Class: Stream

Inherits:
Object
  • Object
show all
Defined in:
lib/stream2tracks/stream.rb

Overview

An abstract class

Direct Known Subclasses

ASXStream

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Stream

Returns a new instance of Stream.



32
33
34
35
36
37
# File 'lib/stream2tracks/stream.rb', line 32

def initialize path
	@path=path
	file=open(@path)
	@raw=file.read
	@tags=Tags.new
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



30
31
32
# File 'lib/stream2tracks/stream.rb', line 30

def key
  @key
end

#tagsObject

Returns the value of attribute tags.



30
31
32
# File 'lib/stream2tracks/stream.rb', line 30

def tags
  @tags
end

Instance Method Details

#entriesObject

To be implemented in the concrete subclass



40
# File 'lib/stream2tracks/stream.rb', line 40

def entries ; end

#parseObject

To be implemented in the concrete subclass



47
# File 'lib/stream2tracks/stream.rb', line 47

def parse ; end