Sha256: 28e381ef1a1f2ac1a00fa74d61bea8a77b5eae6ab6efd86baa84d0d427f66ea8

Contents?: true

Size: 554 Bytes

Versions: 23

Compression:

Stored size: 554 Bytes

Contents

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[untyped, untyped]?

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

      def ==: (untyped other) -> bool

      alias eql? ==

      def hash: () -> Integer

      include _ToJson
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rbs-1.7.0.beta.3 sig/annotation.rbs
rbs-1.7.0.beta.2 sig/annotation.rbs
rbs-1.7.0.beta.1 sig/annotation.rbs