Sha256: 2a33a8051cb4a319fa87503ac90b9bc5a36e5cd76b07857d7e5994d5c4e234b8

Contents?: true

Size: 270 Bytes

Versions: 1

Compression:

Stored size: 270 Bytes

Contents

module Nerpin
  module Nrpn
    class Micron < Base
      def value(value)
        {
          :v0x06 => (value >= 0) ? value / 128 : 127 - (value.abs / 128),
          :v0x26 => (value >= 0) ? value % 128 : 128 - (value.abs % 128)
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nerpin-0.0.2 lib/nerpin/nrpn/micron.rb