Object
# File rbs-1.0.4/lib/rbs/ast/annotation.rb, line 7 def initialize(string,, location)) @string = string @location = location end
# File rbs-1.0.4/lib/rbs/ast/annotation.rb, line 12 def ==(other) other.is_a?(Annotation) && other.string == string end
# File rbs-1.0.4/lib/rbs/ast/annotation.rb, line 18 def hash self.class.hash ^ string.hash end
# File rbs-1.0.4/lib/rbs/ast/annotation.rb, line 22 def to_json(*a) { string: string, location: location }.to_json(*a) end
This page was generated for Ruby 3.0.1
Generated with Ruby-doc Rdoc Generator 0.44.2.