Class: Twb::Window
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Attributes inherited from TabClass
#properties, #ttlogfile, #ttlogfilename, #type, #uuid
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(node) ⇒ Window
constructor
A new instance of Window.
Methods inherited from TabClass
#docFile, #emit, #setDocFileName
Constructor Details
#initialize(node) ⇒ Window
Returns a new instance of Window.
24 25 26 27 |
# File 'lib/twb/window.rb', line 24 def initialize node @node = node @name = @node.attr('name') end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/twb/window.rb', line 22 def name @name end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
22 23 24 |
# File 'lib/twb/window.rb', line 22 def node @node end |
Instance Method Details
#id ⇒ Object
29 30 31 |
# File 'lib/twb/window.rb', line 29 def id @id ||= @id = @name.hash end |