Class: Twb::Window
- Inherits:
-
Object
- Object
- Twb::Window
- Defined in:
- lib/twb/window.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node) ⇒ Window
constructor
A new instance of Window.
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 |