123456789_123456789_123456789_123456789_123456789_

Module: ActiveModel::Access

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: activemodel/lib/active_model/access.rb

Instance Method Summary

Instance Method Details

#slice(*methods)

[ GitHub ]

  
# File 'activemodel/lib/active_model/access.rb', line 8

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

#values_at(*methods)

[ GitHub ]

  
# File 'activemodel/lib/active_model/access.rb', line 12

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