Sha256: fe245cc854270d359a20eabb5c896fabf16ad89a1fc2224bc819f16534647cdd
Contents?: true
Size: 522 Bytes
Versions: 39
Compression:
Stored size: 522 Bytes
Contents
module Mspire class Spectrum # this module can be used to extend the behavior of some peaks as desired module Centroidish def mz() first end def intensity() last end end # an Array implementation of Centroidish using alias_method. Accessing # :mz and :intensity using this object will be nearly 2X as fast as # extending the Centroidish behavior (confirmed by testing) class Centroid < Array alias_method :mz, :first alias_method :intensity, :last end end end
Version data entries
39 entries across 39 versions & 1 rubygems