instance method
indentation
Ruby on Rails 8.0.4
Since v6.0.6 PrivateSignature
indentation()
Returns a string corresponding to the current indentation level (i.e. 2 * @indentation spaces). See also #with_indentation, which can be used to manage the indentation level.
Source
# File railties/lib/rails/generators/actions.rb, line 496
def indentation # :doc:
" " * @indentation
end
Defined in railties/lib/rails/generators/actions.rb line 496
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Actions