Class: Web::Unit::BaseDomWalker
Instance Attribute Summary collapse
-
#cur_path ⇒ Object
readonly
Returns the value of attribute cur_path.
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
Instance Method Summary collapse
- #cur_value ⇒ Object
-
#initialize ⇒ BaseDomWalker
constructor
A new instance of BaseDomWalker.
Constructor Details
#initialize ⇒ BaseDomWalker
Returns a new instance of BaseDomWalker.
12 13 14 |
# File 'lib/web/unit/domwalker.rb', line 12 def initialize() @cur_path = '/' end |
Instance Attribute Details
#cur_path ⇒ Object (readonly)
Returns the value of attribute cur_path.
10 11 12 |
# File 'lib/web/unit/domwalker.rb', line 10 def cur_path @cur_path end |
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
10 11 12 |
# File 'lib/web/unit/domwalker.rb', line 10 def doc @doc end |
Instance Method Details
#cur_value ⇒ Object
16 17 18 |
# File 'lib/web/unit/domwalker.rb', line 16 def cur_value cur_values.join end |