module MachineLearningWorkbench::Monkey::Buildable
Public Instance Methods
new(*args) { |*idxs| ... }
click to toggle source
Calls superclass method
# File lib/machine_learning_workbench/monkey.rb, line 19 def new *args super.tap do |m| if block_given? m.each_stored_with_indices do |_,*idxs| m[*idxs] = yield *idxs end end end end