7 8 9 10 11 12
# File 'lib/ios/sugarcube-factories/uibutton.rb', line 7 def rounded if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeRoundedRect) end