lib/tapioca/rbi_ext/model.rb in tapioca-0.10.4 vs lib/tapioca/rbi_ext/model.rb in tapioca-0.10.5
- old
+ new
@@ -89,11 +89,16 @@
def create_method(name, parameters: [], return_type: "T.untyped", class_method: false, visibility: RBI::Public.new,
comments: [])
return unless Tapioca::RBIHelper.valid_method_name?(name)
sig = RBI::Sig.new(return_type: return_type)
- method = RBI::Method.new(name, sigs: [sig], is_singleton: class_method, visibility: visibility,
- comments: comments)
+ method = RBI::Method.new(
+ name,
+ sigs: [sig],
+ is_singleton: class_method,
+ visibility: visibility,
+ comments: comments,
+ )
parameters.each do |param|
method << param.param
sig << RBI::SigParam.new(param.param.name, param.type)
end
self << method