Sha256: 7e3ffe4f6f6b0dcc91782cb140eae5bc4d76313166fabfec7d38aba78ebce006
Contents?: true
Size: 489 Bytes
Versions: 39
Compression:
Stored size: 489 Bytes
Contents
module RBS module AST class Annotation attr_reader :string attr_reader :location def initialize(string:, location:) @string = string @location = location end def ==(other) other.is_a?(Annotation) && other.string == string end alias eql? == def hash self.class.hash ^ string.hash end def to_json(*a) { string: string, location: location }.to_json(*a) end end end end
Version data entries
39 entries across 39 versions & 2 rubygems