Sha256: 3c17999e292462eb1c2214d8edd0ce18862d42fec9e62803c15af6c85f1f0324
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 Bytes
Contents
module ProMotion module ViewHelper def set_attributes(element, args = {}) args.each do |k, v| element.send("#{k}=", v) if element.respond_to? "#{k}=" end element end def frame_from_array(array) return CGRectMake(array[0], array[1], array[2], array[3]) if array.length == 4 Console.log(" - frame_from_array expects an array with four elements.", withColor: Console::RED_COLOR) CGRectZero end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ProMotion-0.1.2 | lib/ProMotion/helpers/ViewHelper.rb |
ProMotion-0.1.1 | lib/ProMotion/helpers/ViewHelper.rb |