Class: Naksh::Interfaces::Tab
- Inherits:
-
Object
- Object
- Naksh::Interfaces::Tab
- Defined in:
- lib/naksh/interfaces/tab.rb
Constant Summary collapse
- @@tabs =
Array.new
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#session ⇒ Object
Returns the value of attribute session.
-
#textbox ⇒ Object
Returns the value of attribute textbox.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(session = nil) ⇒ Tab
constructor
A new instance of Tab.
Constructor Details
#initialize(session = nil) ⇒ Tab
Returns a new instance of Tab.
34 35 36 37 38 39 40 41 42 |
# File 'lib/naksh/interfaces/tab.rb', line 34 def initialize session=nil @@tabs<<self @number = @@tabs.length @session = session self end |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
45 46 47 |
# File 'lib/naksh/interfaces/tab.rb', line 45 def number @number end |
#session ⇒ Object
Returns the value of attribute session.
44 45 46 |
# File 'lib/naksh/interfaces/tab.rb', line 44 def session @session end |
#textbox ⇒ Object
Returns the value of attribute textbox.
45 46 47 |
# File 'lib/naksh/interfaces/tab.rb', line 45 def textbox @textbox end |