Sha256: edb275dc9f5539ae349c841a807a03def8ecbd18ebbce507fd53cb3ebd42a62e
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
module Unitwise class Functional < Scale attr_reader :function def initialize(value, unit, function_name) super(value, unit) @function = Function.find(function_name) end def scalar puts "Warning: Mathematical operations with special units should be used with caution." super() end def functional(x, direction=1) function.functional(x, direction) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unitwise-0.1.0 | lib/unitwise/functional.rb |