28 29 30 31 32 33
# File 'lib/ios/sugarcube-factories/uibutton.rb', line 28 def detail_disclosure if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeDetailDisclosure) end