Class: CoreFoundation::CFRange

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/macos/core_foundation.rb

Class Method Summary collapse

Class Method Details

.make(location: 0, length: 0) ⇒ Object



39
40
41
42
43
44
# File 'lib/macos/core_foundation.rb', line 39

def self.make(location:0, length:0)
    new.tap do |range|
  range[:location] = location
  range[:length] = length
    end
end