lib/cli/ui/sorbet_runtime_stub.rb in cli-ui-2.1.0 vs lib/cli/ui/sorbet_runtime_stub.rb in cli-ui-2.2.0
- old
+ new
@@ -152,6 +152,18 @@
module Set
class << self
def [](type); end
end
end
+
+ class << self
+ def const_added(name)
+ super
+ raise 'When using both cli-ui and sorbet, you must require sorbet before cli-ui'
+ end
+
+ def method_added(name)
+ super
+ raise 'When using both cli-ui and sorbet, you must require sorbet before cli-ui'
+ end
+ end
end