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 Brauser::Queryable::Queries
#accepts?, #is?, #on?, #version?
Methods included from Brauser::Queryable::Chainers
Constructor Details
#initialize(target, result = true) ⇒ Query
Creates a new query.
31 32 33 34 |
# File 'lib/brauser/query.rb', line 31 def initialize(target, result = true) @target = target @result = result end |
Instance Attribute Details
#result ⇒ Boolean
Returns The current result.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/brauser/query.rb', line 20 class Query attr_accessor :target attr_accessor :result include Brauser::Queryable::Chainers include Brauser::Queryable::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.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/brauser/query.rb', line 20 class Query attr_accessor :target attr_accessor :result include Brauser::Queryable::Chainers include Brauser::Queryable::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 |