A collection of wrappers used to wrap CocoaTouch code and provide more Ruby like APIs.
BubbleWrap::HTTP
wraps NSURLRequest
, NSURLConnection
and friends to provide Ruby developers with a more familiar and easier to use API.
The API uses async calls and blocks to stay as simple as possible.
Usage example:
BubbleWrap::HTTP.get("https://api.github.com/users/mattetti") do |response|
p response.body.to_str
end
BubbleWrap::JSON
wraps NSJSONSerialization
available in iOS5 and offer the same API as Ruby's json std lib.
A collection of useful methods used often in RubyMotion apps.