class

Xerp::Adapters::IndentAdapter

Inherits Xerp::Adapters::Adapter < Reference < Object

Adapter that creates blocks based on indentation levels. Works for most programming languages and config files.

Constructors

new(tab_width : Int32 = 0, file_type_str : String = "code")
Source

Instance methods

build_blocks(lines : Array(String)) : AdapterResult

Builds blocks from an array of lines. Lines are 0-indexed in the array.

Source
file_type

Returns the file type string for this adapter.

Source