Module: SonicPiAkaiApcMini::SPThreadSafeRange

Defined in:
lib/sonic-pi-akai-apc-mini/core_extensions/range.rb

Instance Method Summary collapse

Instance Method Details

#__sp_make_thread_safeObject



3
4
5
# File 'lib/sonic-pi-akai-apc-mini/core_extensions/range.rb', line 3

def __sp_make_thread_safe
  (self.begin.__sp_make_thread_safe..self.end.__sp_make_thread_safe).freeze
end

#sp_thread_safe?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/sonic-pi-akai-apc-mini/core_extensions/range.rb', line 7

def sp_thread_safe?
  frozen? && self.begin.sp_thread_safe? && self.end.sp_thread_safe?
end