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