class Rubella::Input::Base

Gets the raw data and translate it into a readable format for the Rubella::Weighting::Base class. This must be an array within subarrays, which have all the same lenght and contains only numeric data.

Attributes

data[R]

Public Class Methods

new(data) click to toggle source

Constructor Create a new Rubella::Input::Base object using the given data

@param var Input data @return Rubell::Input::Base

# File lib/rubella/input/base.rb, line 18
def initialize data
  @data = data
end

Public Instance Methods

each(&block) click to toggle source

Passes each dataset trought the given block.

@param pointer to block

# File lib/rubella/input/base.rb, line 26
def each &block
  @data.each &block
end