Convert the object to the objective-c literal
Add this line to your application's Gemfile:
gem 'objective_juice'
And then execute:
$ bundle
Or install it yourself as:
$ gem install objective_juice
sample code
require "objective_juice"
hash = {"objectve-c" => "is fantastic", "literal-syntax" => ["string", "array", "number", "hash"]}
objc_literal_string = ObjectiveJuice.splash(hash)
print objc_literal_string + "\n"
output
@{
@"literal-syntax":@[@"string", @"array", @"number", @"hash"],
@"objectve-c":@"is fantastic"
}
TODO: Write usage instructions here
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request