Sha256: 78ff6b0dc31166533198734ea7caccad8d57ecac7b8d71ea7fd1f0a6a701859e

Contents?: true

Size: 226 Bytes

Versions: 2

Compression:

Stored size: 226 Bytes

Contents

module Fzip
  class ArrayAdapter
    def branch?(node)
      node.respond_to? :to_ary
    end

    def children(node)
      node.empty? ? nil : node
    end

    def make_node(node, children)
      children
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fzip-0.2.0 lib/fzip/array_adapter.rb
fzip-0.1.0 lib/fzip/array_adapter.rb