Class: Brauser::Query
- Inherits:
-
Object
- Object
- Brauser::Query
- Defined in:
- lib/brauser/query.rb
Overview
Instance Attribute Summary collapse
-
#result ⇒ Boolean
The current result.
-
#target ⇒ Browser
The current browser.
Instance Method Summary collapse
-
#initialize(target, result = true) ⇒ Query
constructor
Creates a new query.
Methods included from Queries
Methods included from Chainers
Constructor Details
#initialize(target, result = true) ⇒ Query
Creates a new query.
124 125 126 127 |
# File 'lib/brauser/query.rb', line 124 def initialize(target, result = true) @target = target @result = result end |
Instance Attribute Details
#result ⇒ Boolean
Returns The current result.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/brauser/query.rb', line 113 class Query attr_accessor :target attr_accessor :result include Brauser::Chainers include Brauser::Queries # Creates a new query. # # @param target [Browser] The current browser. # @param result [Boolean] The current result. def initialize(target, result = true) @target = target @result = result end end |
#target ⇒ Browser
Returns The current browser.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/brauser/query.rb', line 113 class Query attr_accessor :target attr_accessor :result include Brauser::Chainers include Brauser::Queries # Creates a new query. # # @param target [Browser] The current browser. # @param result [Boolean] The current result. def initialize(target, result = true) @target = target @result = result end end |