Class: Fzip::ArrayAdapter
- Inherits:
-
Object
- Object
- Fzip::ArrayAdapter
- Defined in:
- lib/fzip/array_adapter.rb
Instance Method Summary collapse
Instance Method Details
#branch?(node) ⇒ Boolean
3 4 5 |
# File 'lib/fzip/array_adapter.rb', line 3 def branch?(node) node.respond_to? :to_ary end |
#children(node) ⇒ Object
7 8 9 |
# File 'lib/fzip/array_adapter.rb', line 7 def children(node) node.empty? ? nil : node end |
#make_node(node, children) ⇒ Object
11 12 13 |
# File 'lib/fzip/array_adapter.rb', line 11 def make_node(node, children) children end |