Sha256: d1aa1cbf0d29eb2bdb8036654f3298b595a87a27eb841b4dd3bfe48867792262

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

module Mida
  module DataType

    # Float data type
    module Float

      # Returns the +value+ as a floating point 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/float.rb
mida-0.3.1 lib/mida/datatype/float.rb
mida-0.3.0 lib/mida/datatype/float.rb