Sha256: ec70ab52ff66e3713f8dc1c21d671512883c4013384a12489d2211ec9b50b0b0
Contents?: true
Size: 530 Bytes
Versions: 52
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true module RBS module AST class Comment attr_reader :string attr_reader :location def initialize(string:, location:) @string = string @location = location end def ==(other) other.is_a?(Comment) && other.string == string end alias eql? == def hash self.class.hash ^ string.hash end def to_json(state = _ = nil) { string: string, location: location }.to_json(state) end end end end
Version data entries
52 entries across 52 versions & 2 rubygems