Sha256: a08bdfdc644adb3aa724b9feb785c8c0dcd8a40d3d8257489750f36d3511139d

Contents?: true

Size: 497 Bytes

Versions: 6

Compression:

Stored size: 497 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 NSLocalizedString(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

end
BW = BubbleWrap

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bubble-wrap-1.0.0 motion/core.rb
bubble-wrap-1.0.0.pre.2 motion/core.rb
bubble-wrap-1.0.0.pre motion/core.rb
bubble-wrap-0.4.0 motion/core.rb
bubble-wrap-0.3.1 lib/bubble-wrap/module.rb
bubble-wrap-0.3.0 lib/bubble-wrap/module.rb