module Aggro::BlockHelper

Private: Helper fuction for common operations on blocks.

Public Instance Methods

method_definitions(&block) click to toggle source
# File lib/aggro/block_helper.rb, line 6
def method_definitions(&block)
  test_class = Class.new(BasicObject)
  starting_methods = test_class.instance_methods
  test_class.class_eval(&block)

  test_class.instance_methods - starting_methods
end