lib/sugarcube/nsarray.rb in sugarcube-0.20.1 vs lib/sugarcube/nsarray.rb in sugarcube-0.20.3
- old
+ new
@@ -47,7 +47,11 @@
red = self[0] / 255.0
green = self[1] / 255.0
blue = self[2] / 255.0
UIColor.colorWithRed(red, green:green, blue:blue, alpha:alpha.to_f)
end
+
+ def nsset
+ NSSet.setWithArray self
+ end
end