Class: Declare::BasicScope
- Inherits:
-
Object
- Object
- Declare::BasicScope
- Defined in:
- lib/declare/scope.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#_declare_called_from(level = 0) ⇒ CallerEntry
16 17 18 |
# File 'lib/declare/scope.rb', line 16 def _declare_called_from(level=0) CallerEntry.parse(caller[1 + level]) end |
#The(target, &block) ⇒ AssertionsScope
9 10 11 12 |
# File 'lib/declare/scope.rb', line 9 def The(target, &block) Declare.scope!(target, _declare_called_from) Declare.new_scope(target, &block) end |