Module: Diamond::API::Sequence

Included in:
Diamond::Arpeggiator
Defined in:
lib/diamond/api.rb

Overview

Convenience methods dealing with the sequence

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


63
64
65
66
67
68
69
70
# File 'lib/diamond/api.rb', line 63

def self.included(base)
  base.send(:extend, Forwardable)
  base.send(:def_delegators,
            :@sequence, 
            :sequence, 
            :remove_all)
  base.send(:alias_method, :clear, :remove_all)
end