Sha256: 73c97b8a47dc2e2a07bb3c1f959a010d160805279605e21e2bd6e7488a7b43c9

Contents?: true

Size: 203 Bytes

Versions: 2

Compression:

Stored size: 203 Bytes

Contents

class NSURL

  def open
    UIApplication.sharedApplication.openURL(NSURL.URLWithString(self))
  end

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sugarcube-0.11.2 lib/sugarcube/nsurl.rb
sugarcube-0.11.1 lib/sugarcube/nsurl.rb