Sha256: faf013be979174ac77d0c46846e1924799c9e4b003a709900f52c71f76e27445

Contents?: true

Size: 196 Bytes

Versions: 32

Compression:

Stored size: 196 Bytes

Contents

module Representable::Represent
  def represent(represented, array_class=Array)
    return for_collection.prepare(represented) if represented.is_a?(array_class)
    prepare(represented)
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
representable-3.0.4 lib/representable/represent.rb
representable-3.0.3 lib/representable/represent.rb
representable-3.0.2 lib/representable/represent.rb
representable-3.0.1 lib/representable/represent.rb
representable-3.0.0 lib/representable/represent.rb
representable-2.4.1 lib/representable/represent.rb
representable-2.4.0 lib/representable/represent.rb
representable-2.4.0.rc5 lib/representable/represent.rb
representable-2.4.0.rc4 lib/representable/represent.rb
representable-2.4.0.rc3 lib/representable/represent.rb
representable-2.4.0.rc2 lib/representable/represent.rb
representable-2.4.0.rc1 lib/representable/represent.rb
representable-2.3.0 lib/representable/represent.rb
representable-2.2.3 lib/representable/represent.rb
representable-2.2.2 lib/representable/represent.rb
representable-2.2.1 lib/representable/represent.rb
representable-2.2.0 lib/representable/represent.rb
representable-2.1.8 lib/representable/represent.rb
representable-2.1.7 lib/representable/represent.rb
representable-2.1.6 lib/representable/represent.rb