Module: LintTrappings::Spec::IndentationHelpers
- Defined in:
- lib/lint_trappings/spec/indentation_helpers.rb
Instance Method Summary collapse
-
#normalize_indent(code) ⇒ Object
Strips off excess leading indentation from each line so we can use Heredocs for writing code without having the leading indentation count.
Instance Method Details
#normalize_indent(code) ⇒ Object
Strips off excess leading indentation from each line so we can use Heredocs for writing code without having the leading indentation count.
4 5 6 |
# File 'lib/lint_trappings/spec/indentation_helpers.rb', line 4 def normalize_indent(code) LintTrappings::Utils.normalize_indent(code) end |