class UnderOs::UI::Label
Public Class Methods
new(options={})
click to toggle source
Calls superclass method
UnderOs::UI::View::new
# File lib/under_os/ui/label.rb, line 4 def initialize(options={}) super self.text = options.delete(:text) || '' @_.sizeToFit @_.numberOfLines = 1; @_.adjustsFontSizeToFitWidth = true; end
Public Instance Methods
text()
click to toggle source
# File lib/under_os/ui/label.rb, line 14 def text @_.text end
text=(text)
click to toggle source
# File lib/under_os/ui/label.rb, line 18 def text=(text) @_.text = text end