Class: Twb::Window

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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