Class: Cutest::Scope

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

Instance Method Summary collapse

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

#callObject



160
161
162
# File 'lib/cutest.rb', line 160

def call
  instance_eval(&@scope)
end