Sha256: 29804c08b9b8fbba9d679746766dc47c8e7912ab68c362525f4edd23bf9332f6
Contents?: true
Size: 267 Bytes
Versions: 1
Compression:
Stored size: 267 Bytes
Contents
module MetaModel module ModelHelper def hierarchical_render(hierarchy, level = 0, &block) hierarchy.each do |object, sub_hierarchy| block.call object, level hierarchical_render(sub_hierarchy, level + 1, &block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neo4j-meta_model-0.0.1 | app/helpers/meta_model/model_helper.rb |