class RBS::Annotate::Annotations::Source
Attributes
annotation[R]
include_source[R]
skip_source[R]
Public Class Methods
new(annotation:, include: nil, skip: nil)
click to toggle source
# File rbs-3.2.2/lib/rbs/annotate/annotations.rb, line 31 def initialize(annotation:, include: nil, skip: nil) @annotation = annotation @include_source = include @skip_source = skip end
Public Instance Methods
==(other)
click to toggle source
# File rbs-3.2.2/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
Also aliased as: eql?
hash()
click to toggle source
# File rbs-3.2.2/lib/rbs/annotate/annotations.rb, line 37 def hash self.class.hash ^ annotation.hash ^ include_source.hash ^ skip_source.hash end