Sha256: 38f2ae5e58ecb7179054c39d8930c392cbdc75c0ffee464c14afc4f457dca6a5
Contents?: true
Size: 310 Bytes
Versions: 18
Compression:
Stored size: 310 Bytes
Contents
def foo(n) case n when Integer n + 1 when String n + "STR" else raise end end def ret_int foo(42) end def ret_str foo("str") end __END__ # Classes class Object # def foo : (Integer) -> Integer # | (String) -> String def ret_int : -> Integer def ret_str : -> String end
Version data entries
18 entries across 18 versions & 1 rubygems