Sha256: fef88559021e34b38b965e84d43917f889d11adc50a4607f876bb04460266b7e

Contents?: true

Size: 1.07 KB

Versions: 12

Compression:

Stored size: 1.07 KB

Contents

module RBS
  class Writer
    interface _IO
      def puts: (*untyped) -> void

      def flush: () -> void
    end

    attr_reader out: _IO
    attr_reader indentation: Array[String]

    def initialize: (out: _IO) -> void

    def indent: (?Integer size) { () -> void } -> void

    def prefix: () -> String

    def puts: (?String) -> void

    def write_annotation: (Array[AST::Annotation]) -> void

    def write_comment: (AST::Comment?) -> void

    def write: (Array[AST::Declarations::t]) -> void

    def write_decl: (AST::Declarations::t) -> void

    def write_member: (AST::Declarations::Module::member) -> void

    def name_and_params: (TypeName, AST::Declarations::ModuleTypeParams) -> String?

    def name_and_args: (TypeName, Array[Types::t]) -> String?

    def method_name: (Symbol) -> String

    def write_def: (AST::Members::MethodDefinition) -> void

    def attribute: (:reader | :writer | :accessor, AST::Members::Attribute) -> void

    interface _Located
      def location: () -> Location?
    end

    def preserve_empty_line: (_Located?, _Located) -> void
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rbs-1.6.2 sig/writer.rbs
rbs-1.6.1 sig/writer.rbs
rbs-1.6.0 sig/writer.rbs
rbs-1.5.1 sig/writer.rbs
rbs-1.5.0 sig/writer.rbs
rbs-1.4.0 sig/writer.rbs
rbs-1.3.3 sig/writer.rbs
rbs-1.3.2 sig/writer.rbs
rbs-1.3.1 sig/writer.rbs
rbs-1.3.0 sig/writer.rbs
rbs-1.2.1 sig/writer.rbs
rbs-1.2.0 sig/writer.rbs