Sha256: f4c529ade616c570946577d45b379865e99feafcdd3229dacdf01a31b11477a2

Contents?: true

Size: 1.84 KB

Versions: 45

Compression:

Stored size: 1.84 KB

Contents

class UIButton
  class << self
    def custom
      self.buttonWithType(:custom.uibuttontype)
    end
    def rounded
      if self != UIButton
        raise "Custom subclasses of UIButton most be created using UIButton.custom"
      end
      self.buttonWithType(:rounded.uibuttontype)
    end
    def rounded_rect
      if self != UIButton
        raise "Custom subclasses of UIButton most be created using UIButton.custom"
      end
      self.buttonWithType(:rounded_rect.uibuttontype)
    end
    def detail
      if self != UIButton
        raise "Custom subclasses of UIButton most be created using UIButton.custom"
      end
      self.buttonWithType(:detail.uibuttontype)
    end
    def detail_disclosure
      if self != UIButton
        raise "Custom subclasses of UIButton most be created using UIButton.custom"
      end
      self.buttonWithType(:detail_disclosure.uibuttontype)
    end
    def info
      if self != UIButton
        raise "Custom subclasses of UIButton most be created using UIButton.custom"
      end
      self.buttonWithType(:info.uibuttontype)
    end
    def info_light
      if self != UIButton
        raise "Custom subclasses of UIButton most be created using UIButton.custom"
      end
      self.buttonWithType(:info_light.uibuttontype)
    end
    def info_dark
      if self != UIButton
        raise "Custom subclasses of UIButton most be created using UIButton.custom"
      end
      self.buttonWithType(:info_dark.uibuttontype)
    end
    def contact
      if self != UIButton
        raise "Custom subclasses of UIButton most be created using UIButton.custom"
      end
      self.buttonWithType(:contact.uibuttontype)
    end
    def contact_add
      if self != UIButton
        raise "Custom subclasses of UIButton most be created using UIButton.custom"
      end
      self.buttonWithType(:contact_add.uibuttontype)
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
sugarcube-0.20.25 lib/sugarcube/uibutton.rb
sugarcube-0.20.24 lib/sugarcube/uibutton.rb
sugarcube-0.20.23 lib/sugarcube/uibutton.rb
sugarcube-0.20.22 lib/sugarcube/uibutton.rb
sugarcube-0.20.21 lib/sugarcube/uibutton.rb
sugarcube-0.20.20 lib/sugarcube/uibutton.rb
sugarcube-0.20.19 lib/sugarcube/uibutton.rb
sugarcube-0.20.18 lib/sugarcube/uibutton.rb
sugarcube-0.20.17 lib/sugarcube/uibutton.rb
sugarcube-0.20.16 lib/sugarcube/uibutton.rb
sugarcube-0.20.15 lib/sugarcube/uibutton.rb
sugarcube-0.20.13 lib/sugarcube/uibutton.rb
sugarcube-0.20.12 lib/sugarcube/uibutton.rb
sugarcube-0.20.11 lib/sugarcube/uibutton.rb
sugarcube-0.20.10 lib/sugarcube/uibutton.rb
sugarcube-0.20.9 lib/sugarcube/uibutton.rb
sugarcube-0.20.8 lib/sugarcube/uibutton.rb
sugarcube-0.20.7 lib/sugarcube/uibutton.rb
sugarcube-0.20.6 lib/sugarcube/uibutton.rb
sugarcube-0.20.5 lib/sugarcube/uibutton.rb