In Files

  • rbs-2.1.0/lib/rbs/annotate/annotations.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

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-2.1.0/lib/rbs/annotate/annotations.rb, line 29
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-2.1.0/lib/rbs/annotate/annotations.rb, line 39
def ==(other)
  other.is_a?(Source) &&
    other.annotation == annotation &&
    other.include_source == include_source &&
    other.skip_source == skip_source
end
            
Also aliased as: eql?
eql?(other) click to toggle source
Alias for: ==
hash() click to toggle source
 
               # File rbs-2.1.0/lib/rbs/annotate/annotations.rb, line 35
def hash
  self.class.hash ^ annotation.hash ^ include_source.hash ^ skip_source.hash
end
            
There is an updated format of the API docs for this version here.