Module: ActiveMocker::MockCreator::Scopes
- Defined in:
- lib/active_mocker/mock_creator.rb
Instance Method Summary collapse
Instance Method Details
#scope_methods ⇒ Object
221 222 223 224 225 226 |
# File 'lib/active_mocker/mock_creator.rb', line 221 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 |