Class: RBS::AST::Ruby::Annotations::SkipAnnotation

Inherits:
Base
  • Object
show all
Defined in:
lib/rbs/ast/ruby/annotations.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#location, #prefix_location

Instance Method Summary collapse

Methods inherited from Base

#buffer

Constructor Details

#initialize(location:, prefix_location:, skip_location:, comment_location:) ⇒ SkipAnnotation

Returns a new instance of SkipAnnotation.



144
145
146
147
148
# File 'lib/rbs/ast/ruby/annotations.rb', line 144

def initialize(location:, prefix_location:, skip_location:, comment_location:)
  super(location, prefix_location)
  @skip_location = skip_location
  @comment_location = comment_location
end

Instance Attribute Details

#comment_locationObject (readonly)

Returns the value of attribute comment_location.



142
143
144
# File 'lib/rbs/ast/ruby/annotations.rb', line 142

def comment_location
  @comment_location
end

#skip_locationObject (readonly)

Returns the value of attribute skip_location.



142
143
144
# File 'lib/rbs/ast/ruby/annotations.rb', line 142

def skip_location
  @skip_location
end

Instance Method Details

#type_fingerprintObject



150
151
152
# File 'lib/rbs/ast/ruby/annotations.rb', line 150

def type_fingerprint
  "annots/skip"
end