Method: Bashly::IndentationHelper#indent
- Defined in:
- lib/bashly/concerns/indentation_helper.rb
#indent(line) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/bashly/concerns/indentation_helper.rb', line 13 def indent(line) if inside_heredoc? reset_marker if heredoc_closed?(line) line else set_heredoc_state(line) "#{indentation}#{line}" end end |