Sha256: 37d5a996182f227922ef4870615fc01118e7e53c646537db050b4554a37f1fa2

Contents?: true

Size: 284 Bytes

Versions: 17

Compression:

Stored size: 284 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

  def nsurlrequest
    NSURLRequest.requestWithURL(self)
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sugarcube-0.20.25 lib/sugarcube/nsurl.rb
sugarcube-0.20.24 lib/sugarcube/nsurl.rb
sugarcube-0.20.23 lib/sugarcube/nsurl.rb
sugarcube-0.20.22 lib/sugarcube/nsurl.rb
sugarcube-0.20.21 lib/sugarcube/nsurl.rb
sugarcube-0.20.20 lib/sugarcube/nsurl.rb
sugarcube-0.20.19 lib/sugarcube/nsurl.rb
sugarcube-0.20.18 lib/sugarcube/nsurl.rb
sugarcube-0.20.17 lib/sugarcube/nsurl.rb
sugarcube-0.20.16 lib/sugarcube/nsurl.rb
sugarcube-0.20.15 lib/sugarcube/nsurl.rb
sugarcube-0.20.13 lib/sugarcube/nsurl.rb
sugarcube-0.20.12 lib/sugarcube/nsurl.rb
sugarcube-0.20.11 lib/sugarcube/nsurl.rb
sugarcube-0.20.10 lib/sugarcube/nsurl.rb
sugarcube-0.20.9 lib/sugarcube/nsurl.rb
sugarcube-0.20.8 lib/sugarcube/nsurl.rb