Class: CFRange

Inherits:
Object
  • 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)


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

def ax_value; KAXValueCFRangeType end

Instance Method Details

#to_rubyRange

Convert the CFRange to a Ruby Range object

Returns:



58
59
60
# File 'lib/accessibility/bridge/macruby.rb', line 58

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