Class: NSURL

Inherits:
Object show all
Defined in:
lib/sugarcube/nsurl.rb

Instance Method Summary collapse

Instance Method Details

#can_open?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/sugarcube/nsurl.rb', line 7

def can_open?
  UIApplication.sharedApplication.canOpenURL(self)
end

#openObject



3
4
5
# File 'lib/sugarcube/nsurl.rb', line 3

def open
  UIApplication.sharedApplication.openURL(self)
end