class HtmlFormatter::ElixirIndenter
Constants
- ELIXIR_INDENT
- ELIXIR_OUTDENT
- INDENT_KEYWORDS
- OUTDENT_KEYWORDS
Public Instance Methods
indent?(lines)
click to toggle source
# File lib/htmlformatter/elixir_indenter.rb, line 16 def indent?(lines) lines.join("\n") =~ ELIXIR_INDENT end
outdent?(lines)
click to toggle source
# File lib/htmlformatter/elixir_indenter.rb, line 12 def outdent?(lines) lines.first =~ ELIXIR_OUTDENT end