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-2.6.0 sig/annotation.rbs
rbs-2.5.1 sig/annotation.rbs
rbs-2.5.0 sig/annotation.rbs
rbs-2.4.0 sig/annotation.rbs
rbs-2.3.2 sig/annotation.rbs
rbs-2.3.1 sig/annotation.rbs
rbs-2.3.0 sig/annotation.rbs
rbs-2.2.2 sig/annotation.rbs
rbs-2.2.1 sig/annotation.rbs
rbs-2.2.0 sig/annotation.rbs
rbs-2.1.0 sig/annotation.rbs
rbs-2.0.0 sig/annotation.rbs
rbs-2.0.0.pre2 sig/annotation.rbs
rbs-2.0.0.pre1 sig/annotation.rbs
rbs-1.8.1 sig/annotation.rbs
rbs-1.8.0 sig/annotation.rbs
rbs-1.7.1 sig/annotation.rbs
rbs-1.7.0 sig/annotation.rbs
rbs-1.7.0.beta.5 sig/annotation.rbs
rbs-1.7.0.beta.4 sig/annotation.rbs