core/module.rbs in rbs-3.0.4 vs core/module.rbs in rbs-3.1.0

- old
+ new

@@ -282,11 +282,11 @@ # module Mod # attr_accessor(:one, :two) #=> [:one, :one=, :two, :two=] # end # Mod.instance_methods.sort #=> [:one, :one=, :two, :two=] # - def attr_accessor: (*Symbol | String arg0) -> Array[Symbol] + def attr_accessor: (*Object::name arg0) -> Array[Symbol] # <!-- # rdoc-file=object.c # - attr_reader(symbol, ...) -> array # - attr(symbol, ...) -> array @@ -296,22 +296,22 @@ # Creates instance variables and corresponding methods that return the value of # each instance variable. Equivalent to calling ```attr`*:name*'' on each name # in turn. String arguments are converted to symbols. Returns an array of # defined method names as symbols. # - def attr_reader: (*Symbol | String arg0) -> Array[Symbol] + def attr_reader: (*Object::name arg0) -> Array[Symbol] # <!-- # rdoc-file=object.c # - attr_writer(symbol, ...) -> array # - attr_writer(string, ...) -> array # --> # Creates an accessor method to allow assignment to the attribute # *symbol*`.id2name`. String arguments are converted to symbols. Returns an # array of defined method names as symbols. # - def attr_writer: (*Symbol | String arg0) -> Array[Symbol] + def attr_writer: (*Object::name arg0) -> Array[Symbol] # <!-- # rdoc-file=load.c # - mod.autoload(const, filename) -> nil # --> @@ -1627,7 +1627,7 @@ # The first form is equivalent to #attr_reader. The second form is equivalent to # `attr_accessor(name)` but deprecated. The last form is equivalent to # `attr_reader(name)` but deprecated. Returns an array of defined method names # as symbols. # - def attr: (*Symbol | String arg0) -> Array[Symbol] + def attr: (*Object::name arg0) -> Array[Symbol] end