HI 我嘗試建立一些動態定義的方法和鏈條一些範圍的方法是這樣的:爲 define_method "#{instance_name_method}" do
Kernel.const_get(model_name).___some_chaining methods basd on condition
end
一個想法是這樣的: method_action = model_name #
import itertools
def _yield_sample():
it = iter(itertools.combinations('ABCD', 2))
it2 = iter(itertools.combinations('EFGH', 3))
itc = itertools.chain(it,it2)
for x in itc: