class RBS::AST::Annotation
属性
location[R]
string[R]
公共类方法
new(string:, location:) 点击切换源代码
# File rbs-3.8.0/lib/rbs/ast/annotation.rb, line 9 def initialize(string:, location:) @string = string @location = location end
公共实例方法
==(other) 点击切换源代码
# File rbs-3.8.0/lib/rbs/ast/annotation.rb, line 14 def ==(other) other.is_a?(Annotation) && other.string == string end
别名:eql?
hash() 点击切换源代码
# File rbs-3.8.0/lib/rbs/ast/annotation.rb, line 20 def hash self.class.hash ^ string.hash end
to_json(state = _ = nil) 点击切换源代码
# File rbs-3.8.0/lib/rbs/ast/annotation.rb, line 24 def to_json(state = _ = nil) { string: string, location: location }.to_json(state) end