instance method depth

Ruby on Rails 8.1.2

Since v8.0.4 Private — implementation detail, not part of the public API

Available in: v8.0.4 v8.1.2

Signature

depth()

No documentation comment.

Source
# File railties/lib/rails/generators/rails/script/script_generator.rb, line 13
        def depth
          class_path.size + 1
        end

Defined in railties/lib/rails/generators/rails/script/script_generator.rb line 13 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Generators::ScriptGenerator

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close