Sha256: bc427be1f37b799e6913455e716186e7898fc51092a3aca946acda1e26128f0a
Contents?: true
Size: 499 Bytes
Versions: 23
Compression:
Stored size: 499 Bytes
Contents
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
23 entries across 23 versions & 1 rubygems