Class: NSString

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

Overview

accessibility-core extensions for NSString

Instance Method Summary collapse

Instance Method Details

#to_urlNSURL?

Create an NSURL using the receiver as the initialization string

If the receiver is not a valid URL then nil will be returned.

This exists because of rdar://11207662.

Returns:



30
31
32
# File 'lib/accessibility/bridge/macruby.rb', line 30

def to_url
  NSURL.URLWithString self
end