class LSProtocol::FormattingOptions
- LSProtocol::FormattingOptions
- Reference
- Object
Overview
Value-object describing what options formatting should use.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(insert_spaces : Bool | Nil, tab_size : UInt32 | Nil, insert_final_newline : Bool | Nil = nil, trim_final_newlines : Bool | Nil = nil, trim_trailing_whitespace : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #insert_final_newline : Bool | Nil
- #insert_spaces : Bool
- #tab_size : UInt32
- #trim_final_newlines : Bool | Nil
- #trim_trailing_whitespace : Bool | Nil
Constructor Detail
def self.new(insert_spaces : Bool | Nil, tab_size : UInt32 | Nil, insert_final_newline : Bool | Nil = nil, trim_final_newlines : Bool | Nil = nil, trim_trailing_whitespace : Bool | Nil = nil)
#