Sha256: ef81da721d031add6cac866f418091a3adee199257d727e78a8559d16347b0b5
Contents?: true
Size: 257 Bytes
Versions: 3
Compression:
Stored size: 257 Bytes
Contents
module Mida module DataType # Number data type module Number # Returns the +value+ as a number # Relies on +Float+ to raise +ArgumentError+ if not valid def self.extract(value) Float(value) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mida-0.3.2 | lib/mida/datatype/number.rb |
mida-0.3.1 | lib/mida/datatype/number.rb |
mida-0.3.0 | lib/mida/datatype/number.rb |