Class: Autoweb::Element
- Inherits:
-
Object
- Object
- Autoweb::Element
- Defined in:
- lib/autoweb/page.rb
Instance Attribute Summary collapse
-
#css ⇒ Object
readonly
Returns the value of attribute css.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent, name, css) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(parent, name, css) ⇒ Element
Returns a new instance of Element.
45 46 47 48 49 |
# File 'lib/autoweb/page.rb', line 45 def initialize(parent,name, css) @parent = parent @name = name @css = css end |
Instance Attribute Details
#css ⇒ Object (readonly)
Returns the value of attribute css.
44 45 46 |
# File 'lib/autoweb/page.rb', line 44 def css @css end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
44 45 46 |
# File 'lib/autoweb/page.rb', line 44 def name @name end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
44 45 46 |
# File 'lib/autoweb/page.rb', line 44 def parent @parent end |