method
batch
v7.1.3.4 -
Show latest stable
- Class:
ActiveSupport::CodeGenerator
batch(owner, path, line)public
No documentation available.
# File activesupport/lib/active_support/code_generator.rb, line 36
def batch(owner, path, line)
if owner.is_a?(CodeGenerator)
yield owner
else
instance = new(owner, path, line)
result = yield instance
instance.execute
result
end
end