class Rubella::Output::Base
Output
base class The output class gets the storage within the already weighted and in buckets sorted content. It creates a visual representation of the given data and stores this local.
Attributes
field_size[RW]
Public Class Methods
new(data, field_size)
click to toggle source
Constructor Gets the field size to store it local. It’s the size of one value of the later created visual representation. The unit depends on the kind of representation.
@param data Rubella::Storage
@param field_size
int size of one value @return Rubella::Output::Base
# File lib/rubella/output/base.rb, line 21 def initialize data, field_size @data = data @field_size = field_size end
Public Instance Methods
render()
click to toggle source
Creates a visual representation.
@return rendered data
# File lib/rubella/output/base.rb, line 30 def render raise NotImplementedError.new "Please override 'render' in your "+ "concrete implementation" end