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.



73
74
75
# File 'lib/cutest.rb', line 73

def initialize(&scope)
  @scope = scope
end

Instance Method Details

#callObject



77
78
79
# File 'lib/cutest.rb', line 77

def call
  instance_eval(&@scope)
end