module ActiveModel::Access

def slice(*methods)

:nodoc:
def slice(*methods)
  methods.flatten.index_with { |method| public_send(method) }.with_indifferent_access
end

def values_at(*methods)

def values_at(*methods)
  methods.flatten.map! { |method| public_send(method) }
end