Sha256: 72f2c9a1eeee911a65523a676530224f1dfdee94a2a50622d6031b40ba874c2d
Contents?: true
Size: 681 Bytes
Versions: 28
Compression:
Stored size: 681 Bytes
Contents
class Something def self.classmethod 1 + 1 end # Other edge cases: def opt_args(arg1, arg2 = 42, *args) arg3 = arg1 * arg2 * 7 puts(arg3.to_s) return "foo" end def multi_args(arg1, arg2) arg3 = arg1 * arg2 * 7 puts(arg3.to_s) return "foo" end def unknown_args(arg1, arg2) # does nothing return arg1 end def determine_args 5 == unknown_args(4, "known") end # TODO: sort list def bbegin begin 1 rescue SyntaxError => e1 2 rescue Exception => e2 3 else 4 ensure 5 end end def bbegin_no_exception begin 5 rescue 6 end end end
Version data entries
28 entries across 26 versions & 3 rubygems