Sha256: dbff89852103af0d8a9c67c10520faf05db3e99c8c294927be4e2bcaaba22d5e

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

require 'mspire/mass/mass_provider'
require 'mspire/mass/element'

module Mspire
  module Mass
    module Common
      extend MassProvider

      MONO_STRING = {
        'H2O' => %w(H H O).map {|el| Element::MONO_STRING[el] }.reduce(:+),
        'OH' => %w(O H).map {|el| Element::MONO_STRING[el] }.reduce(:+),
      }

      AVG_STRING = {
        'H2O' => %w(H H O).map {|el| Element::AVG_STRING[el] }.reduce(:+),
        'OH' => %w(O H).map {|el| Element::AVG_STRING[el] }.reduce(:+),
      }

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mspire-mass-0.1.0 lib/mspire/mass/common.rb