Class: Aygabtu::ScopeChain
- Inherits:
-
Object
- Object
- Aygabtu::ScopeChain
- Defined in:
- lib/aygabtu/scope_chain.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(example_group, scope) ⇒ ScopeChain
constructor
A new instance of ScopeChain.
- #remaining(&block) ⇒ Object
Constructor Details
#initialize(example_group, scope) ⇒ ScopeChain
Returns a new instance of ScopeChain.
6 7 8 9 |
# File 'lib/aygabtu/scope_chain.rb', line 6 def initialize(example_group, scope) @example_group = example_group @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
11 12 13 |
# File 'lib/aygabtu/scope_chain.rb', line 11 def scope @scope end |
Class Method Details
.scope_methods ⇒ Object
29 30 31 |
# File 'lib/aygabtu/scope_chain.rb', line 29 def self.scope_methods [:remaining, *Scope::Base.factory_methods] end |
Instance Method Details
#remaining(&block) ⇒ Object
25 26 27 |
# File 'lib/aygabtu/scope_chain.rb', line 25 def remaining(&block) remaining_at(@example_group.aygabtu_handle.checkpoint, &block) end |