Class: Cutest::Scope
- Inherits:
-
Object
- Object
- Cutest::Scope
- Defined in:
- lib/cutest.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(&scope) ⇒ Scope
constructor
A new instance of Scope.
Constructor Details
#initialize(&scope) ⇒ Scope
Returns a new instance of Scope.
156 157 158 |
# File 'lib/cutest.rb', line 156 def initialize(&scope) @scope = scope end |
Instance Method Details
#call ⇒ Object
160 161 162 |
# File 'lib/cutest.rb', line 160 def call instance_eval(&@scope) end |