Sha256: 83228f1a0e895ef3c2e485a1d8f68324892c3a2d35be072d6232760de0614a37

Contents?: true

Size: 220 Bytes

Versions: 5

Compression:

Stored size: 220 Bytes

Contents

class NSURL

  def open
    UIApplication.sharedApplication.openURL(self)
  end

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

  def nsdata
    NSData.dataWithContentsOfURL(self)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sugarcube-0.20.7 lib/sugarcube/nsurl.rb
sugarcube-0.20.6 lib/sugarcube/nsurl.rb
sugarcube-0.20.5 lib/sugarcube/nsurl.rb
sugarcube-0.20.4 lib/sugarcube/nsurl.rb
sugarcube-0.20.3 lib/sugarcube/nsurl.rb