https://github.com/watson1978/motion-pp
https://github.com/watson1978/motion-pp
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/watson1978/motion-pp
- Owner: Watson1978
- Created: 2013-11-20T11:34:44.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-04-09T04:12:30.000Z (over 2 years ago)
- Last Synced: 2025-05-07T23:42:44.288Z (about 1 year ago)
- Language: Ruby
- Size: 10.7 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# motion-pp
Pretty-printer for RubyMotion objects.
## Installation
Add this line to your application's Gemfile:
gem 'motion-pp'
And then execute:
$ bundle
Or install it yourself as:
$ [sudo] gem install motion-pp
## Usage
This gem can be used in Rakefile of your RubyMotion project by requiring.
require 'motion-pp'
And then, you would write the code, like:
```ruby
ary = Array.new(5) { {:foobar => :baz} }
pp ary
#=> [{:foobar=>:baz},
{:foobar=>:baz},
{:foobar=>:baz},
{:foobar=>:baz},
{:foobar=>:baz}]
```
This library provides the same APIs as standard Ruby. You could see the APIs references at http://ruby-doc.org/stdlib-1.9.3/libdoc/pp/rdoc/