Sha256: e7b2aff9b935756860b698d73ab6ec9b2262ffa4d1a32e4ff9791ba6afa4ceff

Contents?: true

Size: 264 Bytes

Versions: 22

Compression:

Stored size: 264 Bytes

Contents

class DataParser
  def self.parse(url)
    error_ptr = Pointer.new(:object)
    data = NSData.alloc.initWithContentsOfURL(NSURL.URLWithString(url), options:NSDataReadingUncached, error:error_ptr)
    unless data
      raise error_ptr[0]
    end
    data
  end
end

Version data entries

22 entries across 21 versions & 2 rubygems

Version Path
teacup-2.1.13 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.12 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.11 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.10 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.9 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.8 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.7 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.6 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.5 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.4 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.3 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.2 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.1 samples/osx/Tweets/app/data_parser.rb
teacup-2.1.0 samples/osx/Tweets/app/data_parser.rb
teacup-2.0.6 samples/osx/Tweets/app/data_parser.rb
teacup-2.0.5 samples/osx/Tweets/app/data_parser.rb
teacup-2.0.4 samples/osx/Tweets/app/data_parser.rb
teacup-2.0.3 samples/osx/Tweets/app/data_parser.rb
teacup-2.0.2 samples/Tweets/app/data_parser.rb
teacup-2.0.0 samples/Tweets/app/data_parser.rb