%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/ruby/3.0.6/lib64/ruby/gems/3.0.0/gems/rbs-1.4.0/lib/rbs/ast/ |
Current File : //proc/self/root/opt/plesk/ruby/3.0.6/lib64/ruby/gems/3.0.0/gems/rbs-1.4.0/lib/rbs/ast/comment.rb |
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 def concat(string:, location:) @string.concat string if loc = @location loc.concat location else @location = location end self end end end end