class RBS::AST::Ruby::Annotations::ColonMethodTypeAnnotation
: METHOD-TYPE annotation in leading comments
Attributes
annotations
[R]
Array[AST::Annotation]
Public Class Methods
(location: Location, prefix_location: Location, annotations: Array[AST::Annotation], method_type: MethodType) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/annotations.rb, line 85 def initialize(location:, prefix_location:, annotations:, method_type:) super(location, prefix_location) @annotations = annotations @method_type = method_type end
Calls superclass method
RBS::AST::Ruby::Annotations::Base::new
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/annotations.rb, line 91 def map_type_name self.class.new( location:, prefix_location:, annotations: annotations, method_type: method_type.map_type {|type| type.map_type_name { yield _1 }} ) #: self end
() → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/annotations.rb, line 100 def type_fingerprint [ "annots/colon_method_type", annotations.map(&:to_s), method_type.to_s ] end