Sha256: 358f845892de7cea44f6634daa307aba6295fb8088b8a2eba2b7497691284684
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
module LanguageServer module Protocol module Interface # # Format document on type options # class DocumentOnTypeFormattingOptions def initialize(first_trigger_character:, more_trigger_character: nil) @attributes = {} @attributes[:firstTriggerCharacter] = first_trigger_character @attributes[:moreTriggerCharacter] = more_trigger_character if more_trigger_character @attributes.freeze end # # A character on which formatting should be triggered, like `}`. # # @return [string] def first_trigger_character attributes.fetch(:firstTriggerCharacter) end # # More trigger characters. # # @return [string[]] def more_trigger_character attributes.fetch(:moreTriggerCharacter) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems