class RBS::Annotate::Annotations::Source
属性
annotation[R]
include_source[R]
skip_source[R]
公共类方法
new(annotation:, include: nil, skip: nil) 点击以切换源代码
# File rbs-3.8.0/lib/rbs/annotate/annotations.rb, line 31 def initialize(annotation:, include: nil, skip: nil) @annotation = annotation @include_source = include @skip_source = skip end
公共实例方法
==(other) 点击以切换源代码
# File rbs-3.8.0/lib/rbs/annotate/annotations.rb, line 41 def ==(other) other.is_a?(Source) && other.annotation == annotation && other.include_source == include_source && other.skip_source == skip_source end
也别名为: eql?
hash() 点击以切换源代码
# File rbs-3.8.0/lib/rbs/annotate/annotations.rb, line 37 def hash self.class.hash ^ annotation.hash ^ include_source.hash ^ skip_source.hash end