2015-02-24 21:45:57 +01:00
|
|
|
module Rubella
|
|
|
|
module Input
|
|
|
|
|
2015-04-26 19:11:59 +02:00
|
|
|
# Gets the raw data and translate it into a readable format for the
|
|
|
|
# Rubella::Weighting::Base class.
|
2015-02-24 21:45:57 +01:00
|
|
|
# This must be an array within subarrays, which have all the same lenght
|
|
|
|
# and contains only numeric data.
|
|
|
|
#
|
|
|
|
class Base
|
|
|
|
attr_reader :data
|
|
|
|
|
2015-04-26 07:16:27 +02:00
|
|
|
# Passes each dataset trought the given block.
|
|
|
|
#
|
|
|
|
# @param pointer to block
|
|
|
|
#
|
2015-04-25 22:41:05 +02:00
|
|
|
def each &block
|
|
|
|
@data.each &block
|
|
|
|
end
|
2015-02-24 21:45:57 +01:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|