Object
# File rbs-2.1.0/lib/rbs/ast/comment.rb, line 7 def initialize(string,, location)) @string = string @location = location end
# File rbs-2.1.0/lib/rbs/ast/comment.rb, line 12 def ==(other) other.is_a?(Comment) && other.string == string end
# File rbs-2.1.0/lib/rbs/ast/comment.rb, line 18 def hash self.class.hash ^ string.hash end
# File rbs-2.1.0/lib/rbs/ast/comment.rb, line 22 def to_json(state = _ = nil) { string: string, location: location }.to_json(state) end
This page was generated for Ruby 3.1.2
Ruby-doc.org is a service of James Britt and Neurogami, purveyors of fine dance noise.
Generated with Ruby-doc Rdoc Generator 0.42.0.