module Sway::Mashable

Public Instance Methods

create_mash_from(hash) click to toggle source
# File lib/sway/mashable.rb, line 9
def create_mash_from(hash)
  Hashie::Mash.new(hash)
end
create_mashes_from(array) click to toggle source
# File lib/sway/mashable.rb, line 5
def create_mashes_from(array)
  array.inject([]) {|items, item| items << Hashie::Mash.new(item)}
end