Sha256: 3154586a2e284bf72e2f9f7b1375dfe2ab9603c867d016d0cf7108eac9a5fcd5
Contents?: true
Size: 734 Bytes
Versions: 6
Compression:
Stored size: 734 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
6 entries across 6 versions & 1 rubygems