class Gen::If
Public Class Methods
[](*test_hashes)
click to toggle source
# File lib/gen/if.rb, line 7 def self.[](*test_hashes) test_hash = {} test_hashes.each do |a_test_hash| test_hash.merge! a_test_hash end a_class = Class.new self.make_test a_class, :a_test, test_hash a_class.freeze a_class.new.method(:a_test).to_proc.freeze end