class HtmlCom::Tabs::Tab
Attributes
content[RW]
title[RW]
Public Class Methods
new(title, content: '', callback: nil, debug: false)
click to toggle source
# File lib/htmlcom.rb, line 129 def initialize(title, content: '', callback: nil, debug: false) @title, @content, @callback, @debug = title, content, callback, debug end
Public Instance Methods
content=(s)
click to toggle source
# File lib/htmlcom.rb, line 133 def content=(s) @content = s @callback.ping end
delete()
click to toggle source
# File lib/htmlcom.rb, line 138 def delete() @title = nil @callback.ping end
title=(s)
click to toggle source
# File lib/htmlcom.rb, line 143 def title=(s) @title = s @callback.ping end
to_a()
click to toggle source
# File lib/htmlcom.rb, line 148 def to_a() [@title, @content] end