Sha256: 192028df8d6dddc13ce4341b58db583b5204bcbf8b2d1317eb8f6e3845929001
Contents?: true
Size: 354 Bytes
Versions: 3
Compression:
Stored size: 354 Bytes
Contents
module Aggro # Private: Helper fuction for common operations on blocks. module BlockHelper module_function 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aggro-0.0.4 | lib/aggro/block_helper.rb |
aggro-0.0.3 | lib/aggro/block_helper.rb |
aggro-0.0.2 | lib/aggro/block_helper.rb |