Tty methods are class methods
This commit is contained in:
parent
bbf5825d54
commit
e4a1f3319c
2
Library/Homebrew/sorbet/rbi/dsl/tty.rbi
generated
2
Library/Homebrew/sorbet/rbi/dsl/tty.rbi
generated
@ -5,6 +5,7 @@
|
||||
# Please instead update this file by running `bin/tapioca dsl Tty`.
|
||||
|
||||
module Tty
|
||||
class << self
|
||||
sig { returns(String) }
|
||||
def blue; end
|
||||
|
||||
@ -62,3 +63,4 @@ module Tty
|
||||
sig { returns(String) }
|
||||
def yellow; end
|
||||
end
|
||||
end
|
||||
|
||||
@ -27,7 +27,7 @@ module Tapioca
|
||||
|
||||
methods.each do |method|
|
||||
return_type = (method.to_s.end_with?("?") ? "T::Boolean" : "String")
|
||||
mod.create_method(method.to_s, return_type:)
|
||||
mod.create_method(method.to_s, return_type:, class_method: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user