Sha256: a567d3d8173d41b471a3d4b2c50b0bae2d94d6d70d1676e8612d9d8cd30be3e5
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 Bytes
Contents
module ClosureTree module HashTree extend ActiveSupport::Concern def hash_tree(options = {}) _ct.hash_tree(self_and_descendants, options[:limit_depth]) end module ClassMethods # There is no default depth limit. This might be crazy-big, depending # on your tree shape. Hash huge trees at your own peril! def hash_tree(options = {}) _ct.hash_tree(nil, options[:limit_depth]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
closure_tree-6.0.0 | lib/closure_tree/hash_tree.rb |
closure_tree-6.0.0.gamma | lib/closure_tree/hash_tree.rb |