Sha256: 719f45f330bbf36ea1930a0e7ff9dd4e9144b219aa544d3ea168e3d8155f6c78

Contents?: true

Size: 589 Bytes

Versions: 13

Compression:

Stored size: 589 Bytes

Contents

require 'yaml'

module Mspire
  class Isotope
    MEMBERS = [
      :atomic_number, 
      :element, 
      :mass_number, 
      :atomic_mass, 
      :relative_abundance, 
      :average_mass, 
      :mono
    ].each {|key| attr_accessor key }

    def initialize(*args)
      MEMBERS.zip(args) {|k,val| self.send("#{k}=", val) }
    end
  end
end

require 'mspire/isotope/neese'
# sets Mspire::Isotope::BY_ELEMENTS and Mspire::Isotope::ISOTOPES

module Mspire
  class Isotope
    BY_ELEMENT = Mspire::Isotope::Neese::BY_ELEMENT
    ISOTOPES = Mspire::Isotope::Neese::ISOTOPES
  end
end


Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mspire-0.10.8.0 lib/mspire/isotope.rb
mspire-0.10.7.3 lib/mspire/isotope.rb
mspire-0.10.7.2 lib/mspire/isotope.rb
mspire-0.10.7.1 lib/mspire/isotope.rb
mspire-0.10.7 lib/mspire/isotope.rb
mspire-0.10.6 lib/mspire/isotope.rb
mspire-0.10.5 lib/mspire/isotope.rb
mspire-0.10.4 lib/mspire/isotope.rb
mspire-0.10.3 lib/mspire/isotope.rb
mspire-0.10.2 lib/mspire/isotope.rb
mspire-0.10.1 lib/mspire/isotope.rb
mspire-0.10.0 lib/mspire/isotope.rb
mspire-0.9.2 lib/mspire/isotope.rb