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.
73 74 75 |
# File 'lib/cutest.rb', line 73 def initialize(&scope) @scope = scope end |
Instance Method Details
#call ⇒ Object
77 78 79 |
# File 'lib/cutest.rb', line 77 def call instance_eval(&@scope) end |