sig/raap.rbs in raap-0.4.0 vs sig/raap.rbs in raap-0.5.0

- old
+ new

@@ -4,11 +4,11 @@ def self.logger: () -> ::Logger def self.logger=: (::Logger) -> void module BindCall - def self.define_singleton_method: (untyped, Symbol) { (*untyped, **untyped) -> untyped } -> void + def self.define_method: (untyped, Symbol) { (*untyped, **untyped) -> untyped } -> void def self.respond_to?: (untyped, untyped, ?boolish) -> bool def self.instance_of?: (untyped, Module) -> bool def self.is_a?: (untyped, Module) -> bool def self.extend: (untyped, Module) -> void def self.name: (Module) -> String? @@ -17,19 +17,19 @@ def self.inspect: (untyped) -> String end class CLI class Option < ::Struct[untyped] - def self.new: (?dirs: ::Array[String], ?requires: ::Array[String], ?libraries: ::Array[String], ?timeout: (Integer | Float | nil), ?size_from: ::Integer, ?size_to: ::Integer, ?size_by: ::Integer, ?allow_private: bool, ?skips: ::Array[::String]) -> instance + def self.new: (?dirs: ::Array[String], ?requires: ::Array[String], ?libraries: ::Array[String], ?timeout: (Integer | Float | nil), ?size_from: ::Integer, ?size_to: ::Integer, ?size_by: ::Integer, ?allow_private: bool) -> instance - def self.[]: (?dirs: ::Array[String], ?requires: ::Array[String], ?libraries: ::Array[String], ?timeout: (Integer | Float | nil), ?size_from: ::Integer, ?size_to: ::Integer, ?size_by: ::Integer, ?allow_private: bool, ?skips: ::Array[::String]) -> instance + def self.[]: (?dirs: ::Array[String], ?requires: ::Array[String], ?libraries: ::Array[String], ?timeout: (Integer | Float | nil), ?size_from: ::Integer, ?size_to: ::Integer, ?size_by: ::Integer, ?allow_private: bool) -> instance def self.keyword_init?: () -> true - def self.members: () -> [ :dirs, :requires, :library, :timeout, :size_from, :size_to, :size_by, :allow_private, :skips] + def self.members: () -> [ :dirs, :requires, :library, :timeout, :size_from, :size_to, :size_by, :allow_private] - def members: () -> [ :dirs, :requires, :library, :timeout, :size_from, :size_to, :size_by, :allow_private, :skips] + def members: () -> [ :dirs, :requires, :library, :timeout, :size_from, :size_to, :size_by, :allow_private] attr_accessor dirs: ::Array[String] attr_accessor requires: ::Array[String] @@ -42,20 +42,20 @@ attr_accessor size_to: ::Integer attr_accessor size_by: ::Integer attr_accessor allow_private: bool - - attr_accessor skips: ::Array[String] end type property_result = [Integer, Symbol, ::RBS::MethodType, StringIO?] DEFAULT_SKIP: ::Set[String] @argv: Array[String] + @option: Option @results: Array[{ method: ::RBS::Definition::Method, properties: Array[property_result] }] + @skip: ::Set[::String] def self.option: () -> Option def self.option=: (Option) -> void def initialize: (Array[String]) -> void @@ -218,19 +218,19 @@ @type_params: ::Array[::RBS::AST::TypeParam] @type_args: ::Array[::RBS::Types::t] def initialize: (::Array[::RBS::AST::TypeParam], ::Array[::RBS::Types::t]) -> void def build: () -> ::RBS::Substitution - def method_type_sub: (::RBS::MethodType, ?self_type: ::RBS::Types::ClassInstance?, ?instance_type: ::RBS::Types::ClassInstance?, ?class_type: ::RBS::Types::ClassSingleton?) -> ::RBS::MethodType + def method_type_sub: (::RBS::MethodType, ?self_type: ::RBS::Types::t?, ?instance_type: ::RBS::Types::ClassInstance?, ?class_type: ::RBS::Types::ClassSingleton?) -> ::RBS::MethodType private interface _MapType def map_type: { (untyped) -> untyped } -> untyped end - def sub: (_MapType search, self_type: ::RBS::Types::ClassInstance?, instance_type: ::RBS::Types::ClassInstance?, class_type: ::RBS::Types::ClassSingleton?) -> untyped + def sub: (_MapType search, self_type: ::RBS::Types::t?, instance_type: ::RBS::Types::t?, class_type: ::RBS::Types::t?) -> untyped end class Type module Arithmetic def self.float: () -> Float @@ -243,10 +243,11 @@ SIMPLE_SOURCE: Array[String] def self.register: (String) { () [self: instance] -> Sized[untyped] } -> void def self.random: () -> Type def self.random_without_basic_object: () -> Type + def self.call_new_from: (Module, ::RBS::Types::ClassInstance, size: Integer) -> symbolic_call attr_reader type: ::RBS::Types::t attr_reader range: Range[untyped] def initialize: (String | ::RBS::Types::t, ?range: Range[untyped]) -> void @@ -290,12 +291,11 @@ class Interface < BasicObject @type: ::RBS::Types::Interface @size: Integer @definition: ::RBS::Definition - @fixed_return_value: untyped - @fixed_block_arguments: Array[untyped] + def self.define_method_from_interface: (Class base_class, String | ::RBS::Types::Interface type, ?size: Integer) -> void def initialize: (String | ::RBS::Types::Interface | String, ?size: Integer) -> void def respond_to?: (Symbol, ?boolish) -> bool def inspect: () -> String def class: () -> class end