Class: Autoweb::SubPage
- Inherits:
-
Object
- Object
- Autoweb::SubPage
- Includes:
- Container
- Defined in:
- lib/autoweb/page.rb
Instance Attribute Summary collapse
-
#css ⇒ Object
readonly
Returns the value of attribute css.
-
#is_array ⇒ Object
readonly
Returns the value of attribute is_array.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Attributes included from Container
Instance Method Summary collapse
-
#initialize(parent, name, css, is_array = false) ⇒ SubPage
constructor
A new instance of SubPage.
Methods included from Container
Constructor Details
#initialize(parent, name, css, is_array = false) ⇒ SubPage
Returns a new instance of SubPage.
33 34 35 36 37 38 39 40 |
# File 'lib/autoweb/page.rb', line 33 def initialize(parent, name, css, is_array=false) @parent = parent @css = css @name = name @sub_pages = {} @elements = {} @is_array = is_array end |
Instance Attribute Details
#css ⇒ Object (readonly)
Returns the value of attribute css.
31 32 33 |
# File 'lib/autoweb/page.rb', line 31 def css @css end |
#is_array ⇒ Object (readonly)
Returns the value of attribute is_array.
31 32 33 |
# File 'lib/autoweb/page.rb', line 31 def is_array @is_array end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
31 32 33 |
# File 'lib/autoweb/page.rb', line 31 def parent @parent end |