RubyGems.org

sugarcube

2.1.5

Description

CocoaTouch/iOS is a verbose framework. These extensions hope to make development in rubymotion more enjoyable by tacking “UI” methods onto the base classes (String, Fixnum, Float). With sugarcube, you can create a color from an integer or symbol, or create a UIFont or UIImage from a string.

Some UI classes are opened up as well, like adding the <tt><<</tt> operator to a <tt>UIView</tt> instance, instead of <tt>view.addSubview(subview)</tt>, you can use the more idiomatic: <tt>view << subview</tt>.

installgem install sugarcube
Authors

Colin T.A. Gray, Katsuyoshi Ito, Thom Parkin, Michael Erasmus

112,018 total downloads 87 for this version
Owners

Fece1cbdf77ae706f064492456fd0bee

Licenses

BSD

Gemfile
gem 'sugarcube', '~> 2.1.5'
Versions
  1. 2.1.5 September 15, 2014 (128 KB)
  2. 2.1.4 September 12, 2014 (128 KB)
  3. 2.1.3 September 9, 2014 (128 KB)
  4. 2.1.2 September 8, 2014 (128 KB)
  5. 2.1.1 September 6, 2014 (128 KB)
Show all versions (175 total)
Ruby Dependency
  1. >= 0