Module: Aggro::BlockHelper
- Defined in:
- lib/aggro/block_helper.rb
Overview
Private: Helper fuction for common operations on blocks.
Class Method Summary collapse
Class Method Details
.method_definitions(&block) ⇒ Object
6 7 8 9 10 11 12 |
# 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 |