File Manager

Current Path : /usr/lib/ruby/gems/3.0.0/gems/rbs-1.0.4/sig/
Upload File :
Current File : //usr/lib/ruby/gems/3.0.0/gems/rbs-1.0.4/sig/annotation.rbs

module RBS
  module AST
    # RBS allows writing annotations of declarations and members.
    #
    #    %a{annotation_here}
    #    class Hello
    #      %a{rbs:test:skip}
    #      def foo: () -> void
    #    end
    #
    class Annotation
      attr_reader string: String
      attr_reader location: Location?

      def initialize: (string: String, location: Location?) -> void

      def ==: (untyped other) -> bool

      alias eql? ==

      def hash: () -> Integer

      def to_json: (*untyped) -> String
    end
  end
end

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com