Class: Capybara::Harness::DomHarness
- Inherits:
-
Object
- Object
- Capybara::Harness::DomHarness
- Extended by:
- Forwardable
- Includes:
- DSL
- Defined in:
- lib/capybara/harness/dom_harness.rb
Instance Attribute Summary collapse
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(values = {}) ⇒ DomHarness
constructor
A new instance of DomHarness.
Constructor Details
#initialize(values = {}) ⇒ DomHarness
Returns a new instance of DomHarness.
22 23 24 25 |
# File 'lib/capybara/harness/dom_harness.rb', line 22 def initialize(values = {}) self.subject = Capybara::Harness::Dom::Subject.new(self.class.dom_reader, self.class.dom_writer, values) create_aliases!(self.class.dom_reader.name) end |
Instance Attribute Details
#subject ⇒ Object
Returns the value of attribute subject.
9 10 11 |
# File 'lib/capybara/harness/dom_harness.rb', line 9 def subject @subject end |