Class: Twb::Window

Inherits:
TabClass show all
Defined in:
lib/twb/window.rb

Instance Attribute Summary collapse

Attributes inherited from TabClass

#properties, #ttlogfile, #ttlogfilename, #type, #uuid

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name


22
23
24
# File 'lib/twb/window.rb', line 22

def name
  @name
end

#nodeObject (readonly)

Returns the value of attribute node


22
23
24
# File 'lib/twb/window.rb', line 22

def node
  @node
end

Instance Method Details

#idObject


29
30
31
# File 'lib/twb/window.rb', line 29

def id
    @id ||= @id = @name.hash
end