Class: RubyCurses::TabbedWindow::Tab
- Defined in:
- lib/rbcurse/rtabbedwindow.rb
Overview
nested class tab
Instance Attribute Summary collapse
- #config ⇒ Object readonly
- #form ⇒ Object
- #text ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(text, aconfig = {}, &block) ⇒ Tab
constructor
A new instance of Tab.
- #repaint ⇒ Object
-
#variable_set(var, val) ⇒ Object
private.
Constructor Details
#initialize(text, aconfig = {}, &block) ⇒ Tab
Returns a new instance of Tab.
305 306 307 308 309 310 |
# File 'lib/rbcurse/rtabbedwindow.rb', line 305 def initialize text, aconfig={}, &block @text = text @config = aconfig @config.each_pair { |k,v| variable_set(k,v) } instance_eval &block if block_given? end |
Instance Attribute Details
#config ⇒ Object (readonly)
303 304 305 |
# File 'lib/rbcurse/rtabbedwindow.rb', line 303 def config @config end |
#text ⇒ Object (readonly)
302 303 304 |
# File 'lib/rbcurse/rtabbedwindow.rb', line 302 def text @text end |
Instance Method Details
#variable_set(var, val) ⇒ Object
private
312 313 314 315 |
# File 'lib/rbcurse/rtabbedwindow.rb', line 312 def variable_set var, val var = "@#{var}" instance_variable_set(var, val) end |