lib/cocoa/sugarcube-ui/calayer.rb in sugarcube-3.0.7 vs lib/cocoa/sugarcube-ui/calayer.rb in sugarcube-3.0.8
- old
+ new
@@ -3,6 +3,11 @@
def << (layer)
self.addSublayer layer
return self
end
+ def unshift(layer)
+ self.insertSublayer(layer, atIndex:0)
+ return self
+ end
+
end