Class: Range
Overview
accessibility-core
extensions for Range
Instance Method Summary collapse
Instance Method Details
#to_ax ⇒ AXValueRef
67 68 69 70 71 72 73 74 75 |
# File 'lib/accessibility/bridge/macruby.rb', line 67 def to_ax raise ArgumentError, "can't convert negative index" if last < 0 || first < 0 length = if exclude_end? last - first else last - first + 1 end CFRange.new(first, length).to_ax end |