sample = 0sample.class.find_all { |method_name| sample.method(method_name).arity == 2 }# => ["instance_variable_set", "between?"]