Runtime assertions for Ruby literal.fun
ruby
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix issues in types

+5 -3
+5 -3
lib/literal/types.rb
··· 267 267 end 268 268 269 269 # Nilable version of `_JSONData` 270 - def _JSONData? 271 - NilableJSONDataType 270 + def _JSONData?(...) 271 + _Nilable( 272 + _JSONData(...) 273 + ) 272 274 end 273 275 274 276 # Matches if the value is a `Proc` and `#lambda?` returns truthy. ··· 327 329 end 328 330 329 331 def _Pattern(regex, &block) 330 - raise ArgumentError "Block required for Pattern" unless block 332 + raise ArgumentError.new("Block required for Pattern") unless block 331 333 332 334 -> (value) { 333 335 if (data = regex.match(value))