stdlib/forwardable/0/forwardable.rbs in rbs-3.2.2 vs stdlib/forwardable/0/forwardable.rbs in rbs-3.3.0.pre.1

- old
+ new

@@ -132,11 +132,11 @@ # # def_delegator :@records, :size # def_delegator :@records, :<< # def_delegator :@records, :map # - def def_instance_delegators: (Symbol | String accessor, *Symbol methods) -> void + def def_instance_delegators: (interned accessor, *Symbol methods) -> void # <!-- # rdoc-file=lib/forwardable.rb # - def_delegators(accessor, *methods) # --> @@ -169,11 +169,11 @@ # q.mypush 42 # q.queue #=> [42] # q.push 23 #=> NoMethodError # q.to_i #=> 1 # - def def_instance_delegator: (Symbol | String accessor, Symbol method, ?Symbol ali) -> void + def def_instance_delegator: (interned accessor, Symbol method, ?Symbol ali) -> void # <!-- # rdoc-file=lib/forwardable.rb # - def_delegator(accessor, method, ali = method) # --> @@ -238,11 +238,11 @@ # # def_delegator :@records, :size # def_delegator :@records, :<< # def_delegator :@records, :map # - def def_single_delegators: (Symbol | String accessor, *Symbol methods) -> void + def def_single_delegators: (interned accessor, *Symbol methods) -> void # <!-- # rdoc-file=lib/forwardable.rb # - def_delegators(accessor, *methods) # --> @@ -255,10 +255,10 @@ # --> # Defines a method *method* which delegates to *accessor* (i.e. it calls the # method of the same name in *accessor*). If *new_name* is provided, it is used # as the name for the delegate method. Returns the name of the method defined. # - def def_single_delegator: (Symbol | String accessor, Symbol method, ?Symbol ali) -> void + def def_single_delegator: (interned accessor, Symbol method, ?Symbol ali) -> void # <!-- # rdoc-file=lib/forwardable.rb # - def_delegator(accessor, method, ali = method) # -->