instance method
with_indentation
Ruby on Rails 6.1.7.10
Since v6.0.6 PrivateSignature
with_indentation(&block)
Manage Gemfile indentation for a DSL action block
Parameters
-
blockblock
Source
# File railties/lib/rails/generators/actions.rb, line 355
def with_indentation(&block) # :doc:
@indentation += 1
instance_eval(&block)
ensure
@indentation -= 1
end
Defined in railties/lib/rails/generators/actions.rb line 355
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Actions