class Scale

Superclass for all scales of measure Designed to be extended with the measure method implemented by the specific

Public Class Methods

new() click to toggle source

creates internal array to store measurements by default, persisting measures is turned off if sub-classes need their own initialize logic call super first

# File lib/mobiusloop/scale.rb, line 11
def initialize
end

Public Instance Methods

measure() click to toggle source

method to perform a measurement, should return an instance of Measure

# File lib/mobiusloop/scale.rb, line 15
def measure()
  raise "Someone forgot to override Scale.measure with their unique logic"
end