Sha256: 6e460538f45d1c6fde335d63f078fca06486598e28d4879829ff892307bdb37b

Contents?: true

Size: 1.09 KB

Versions: 9

Compression:

Stored size: 1.09 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[untyped, untyped]?
    end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rbs-1.8.1 sig/writer.rbs
rbs-1.8.0 sig/writer.rbs
rbs-1.7.1 sig/writer.rbs
rbs-1.7.0 sig/writer.rbs
rbs-1.7.0.beta.5 sig/writer.rbs
rbs-1.7.0.beta.4 sig/writer.rbs
rbs-1.7.0.beta.3 sig/writer.rbs
rbs-1.7.0.beta.2 sig/writer.rbs
rbs-1.7.0.beta.1 sig/writer.rbs