module Representable::Represent
Public Instance Methods
represent(represented, array_class=Array)
click to toggle source
# File lib/representable/represent.rb, line 2 def represent(represented, array_class=Array) return for_collection.prepare(represented) if represented.is_a?(array_class) prepare(represented) end