Sha256: 059f2a6a1478b0319bb4fe4abf630ca1d302505c03f24fd5f2ed07647c7ed9bb

Contents?: true

Size: 568 Bytes

Versions: 7

Compression:

Stored size: 568 Bytes

Contents

module BubbleWrap
  module_function

  # @return [UIcolor]
  def rgb_color(r,g,b)
    rgba_color(r,g,b,1)
  end

  # @return [UIcolor]
  def rgba_color(r,g,b,a)
    UIColor.colorWithRed((r/255.0), green:(g/255.0), blue:(b/255.0), alpha:a)
  end

  def localized_string(key, value)
    NSBundle.mainBundle.localizedStringForKey(key, value:value, table:nil)
  end

  # I had issues with #p on the device, this is a temporary workaround
  def p(arg)
    NSLog arg.inspect
  end

  def create_uuid
    uuid = CFUUIDCreate(nil)
    CFUUIDCreateString(nil, uuid)
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bubble-wrap-1.2.0 motion/core.rb
bubble-wrap-1.2.0.pre motion/core.rb
bubble-wrap-1.1.5 motion/core.rb
bubble-wrap-1.1.4 motion/core.rb
bubble-wrap-1.1.3 motion/core.rb
bubble-wrap-1.1.2 motion/core.rb
bubble-wrap-1.1.1 motion/core.rb