class MittensUi::Label
Public Class Methods
new(text, options)
click to toggle source
Calls superclass method
MittensUi::Core::new
# File lib/mittens_ui/label.rb, line 5 def initialize(text, options) if text.nil? || text == "" || text == " " text = "Label" end @label = Gtk::Label.new(text) super(@label, options) end
Public Instance Methods
render()
click to toggle source
# File lib/mittens_ui/label.rb, line 14 def render $vertical_box.pack_start(@label) return self end