Class: MittensUi::WebLink
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Attributes inherited from Core
Instance Method Summary collapse
-
#initialize(name, url, options = {}) ⇒ WebLink
constructor
A new instance of WebLink.
- #render ⇒ Object
Methods inherited from Core
#hidden?, #hide, #remove, #show
Methods included from Helpers
#icon_map, #list_system_icons, #set_margin_from_opts_for
Constructor Details
#initialize(name, url, options = {}) ⇒ WebLink
Returns a new instance of WebLink.
7 8 9 10 11 12 13 14 15 |
# File 'lib/mittens_ui/web_link.rb', line 7 def initialize(name, url, ={}) @name = name || "" @url = url || nil @web_link = Gtk::LinkButton.new(@url, @name) super(@web_link, ) end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/mittens_ui/web_link.rb', line 5 def url @url end |
Instance Method Details
#render ⇒ Object
17 18 19 20 |
# File 'lib/mittens_ui/web_link.rb', line 17 def render $vertical_box.pack_start(@web_link) return self end |