# File lib/liquid/standardfilters.rb, line 101 def map(input, property) ary = [input].flatten ary.map do |e| e = e.call if e.is_a?(Proc) e = e.to_liquid if e.respond_to?(:to_liquid) if property == "to_liquid" e elsif e.respond_to?(:[]) e[property] end end end