Class: Aygabtu::ScopeChain

Inherits:
Object
  • Object
show all
Defined in:
lib/aygabtu/scope_chain.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#scopeObject (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_methodsObject



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