Sha256: 1558ce9af9e0dfa7651f736770b22d2acb4999f9ca77f6a90f99b261399a60af
Contents?: true
Size: 895 Bytes
Versions: 106
Compression:
Stored size: 895 Bytes
Contents
module LanguageServer module Protocol module Interface class DocumentSymbolOptions def initialize(work_done_progress: nil, label: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:label] = label if label @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # A human-readable string that is shown when multiple outlines trees # are shown for the same document. # # @return [string] def label attributes.fetch(:label) 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
106 entries across 106 versions & 13 rubygems