method
batch
v8.0.0 -
Show latest stable
- Class:
ActiveSupport::CodeGenerator
batch(owner, path, line)public
No documentation available.
# File activesupport/lib/active_support/code_generator.rb, line 41
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