TracNav menu
Data streams
The DataStream class is used to represent data streams processed by filters. A DataStream is a Hash with a special key, :text. This is considered the DataStream primary key, and it's the one returned by the DataStream#to_s method. To initialize a DataStream, the command
DataStream.new(string, hash)
is used, where string is a String that will be used as the :text value, and hash is used to initialize all the other keys. Both parameters are optional.
Note that
DataStream.new("some text", :somekey => someval)
is equivalent to
DataStream.new(:text => "some text", :somekey => someval)
