Sha256: 0eca2d6b37e746dbe43482355b86a1a68178c277251e960f8bbe8fe36d320eb1
Contents?: true
Size: 1.69 KB
Versions: 104
Compression:
Stored size: 1.69 KB
Contents
module LanguageServer module Protocol module Interface # # A notebook document filter denotes a notebook document by # different properties. # class NotebookDocumentFilter def initialize(notebook_type: nil, scheme: nil, pattern: nil) @attributes = {} @attributes[:notebookType] = notebook_type if notebook_type @attributes[:scheme] = scheme if scheme @attributes[:pattern] = pattern if pattern @attributes.freeze end # # The type of the enclosing notebook. # # --- OR --- # # The type of the enclosing notebook. # # --- OR --- # # The type of the enclosing notebook. # # @return [string] def notebook_type attributes.fetch(:notebookType) end # # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. # # --- OR --- # # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. # # --- OR --- # # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. # # @return [string] def scheme attributes.fetch(:scheme) end # # A glob pattern. # # --- OR --- # # A glob pattern. # # --- OR --- # # A glob pattern. # # @return [string] def pattern attributes.fetch(:pattern) 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
104 entries across 104 versions & 13 rubygems