Module: MS::Spectrum::LazyIO
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.new(*args) ⇒ Object
275 276 277 278 279 280 281 282 283 |
# File 'lib/ms/spectrum.rb', line 275 def self.new(*args) if args.size == 5 # mzXMl MS::Spectrum::LazyIO::Peaks.new(*args) elsif args.size == 9 # other MS::Spectrum::LazyIO::Pair.new(*args) else raise RunTimeError, "must give 5 or 7 args for peak data and pair data respectively" end end |