Sha256: 566214146ab77b0b7a3dc5022799c8434233de4c60cf9e613d7b902f4dd9e6fc
Contents?: true
Size: 724 Bytes
Versions: 2
Compression:
Stored size: 724 Bytes
Contents
module LanguageServer module Protocol module Interface class Range def initialize(start:, end:) @attributes = {} @attributes[:start] = start @attributes[:end] = binding.local_variable_get(:end) @attributes.freeze end # # The range's start position. # # @return [Position] def start attributes.fetch(:start) end # # The range's end position. # # @return [Position] def end attributes.fetch(:end) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
language_server-protocol-0.4.0 | lib/language_server/protocol/interface/range.rb |
language_server-protocol-0.3.0 | lib/language_server/protocol/interface/range.rb |