Module: SpectrumHash

Defined in:
lib/spectrum_hash.rb,
lib/spectrum_hash/splash.rb,
lib/spectrum_hash/version.rb

Defined Under Namespace

Classes: Splash

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.from_peaks(spectrum, options = {}) ⇒ Object



12
13
14
# File 'lib/spectrum_hash.rb', line 12

def self.from_peaks(spectrum,options={})
  Splash.new spectrum, options
end

.from_splash_string(splash) ⇒ Object



16
17
18
# File 'lib/spectrum_hash.rb', line 16

def self.from_splash_string(splash)
  Splash.new nil, splash: splash
end

.from_string(spectrum_string, options = {}) ⇒ Object



7
8
9
10
# File 'lib/spectrum_hash.rb', line 7

def self.from_string(spectrum_string,options={})
  peaks = parse_peaks_string(spectrum_string)
  self.from_peaks peaks, options
end