Module: ActiveMocker::MockCreator::Scopes

Defined in:
lib/active_mocker/mock_creator.rb

Instance Method Summary collapse

Instance Method Details

#scope_methodsObject



257
258
259
260
261
262
# File 'lib/active_mocker/mock_creator.rb', line 257

def scope_methods
  class_introspector.class_macros.select { |h| h.keys.first == :scope }.map do |h|
    a = h.values.first.first
    Method.new(a[0], ReverseParameters.new(a[1], blocks_as_values: true))
  end
end