Module: Neows::Utils

Included in:
Models::Feed
Defined in:
lib/neows/utils.rb

Instance Method Summary collapse

Instance Method Details

#classify_list!(list, klass) ⇒ list

Modifies given list creating an instance of klass for each item


8
9
10
# File 'lib/neows/utils.rb', line 8

def classify_list!(list, klass)
  list.map! { |h| klass.new(h) }
end