Class: CFRange

Inherits:
Object show all
Defined in:
lib/accessibility/bridge/macruby.rb

Overview

accessibility-core extensions for CFRange

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.ax_valueNumber

Returns the number that AXAPI uses in order to know how to wrap a struct.

Returns:

  • (Number)


132
# File 'lib/accessibility/bridge/macruby.rb', line 132

def ax_value; KAXValueCFRangeType end

Instance Method Details

#to_rubyRange

Convert the CFRange to a Ruby Range object

Returns:



75
76
77
# File 'lib/accessibility/bridge/macruby.rb', line 75

def to_ruby
  Range.new location, (location + length - 1)
end