Method: Class#testify
- Defined in:
- lib/uttk/loaders/Loader.rb
#testify(symtbl, &block) ⇒ Object
121 122 123 124 125 126 127 128 129 130 |
# File 'lib/uttk/loaders/Loader.rb', line 121 def testify ( symtbl, &block ) raise ArgumentError, "nil symtbl" if symtbl.nil? unless self < Uttk::Strategies::Strategy raise ArgumentError, "Need a subclass of Strategy not #{name}" end new do |t| t.symtbl ||= symtbl block[t] if block end end |