Class: Vaulty::VaultTree
- Inherits:
-
Object
- Object
- Vaulty::VaultTree
- Defined in:
- lib/vaulty/vault_tree.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#catacomb ⇒ Object
readonly
Returns the value of attribute catacomb.
Instance Method Summary collapse
- #flatten ⇒ Object
-
#initialize(catacomb:) ⇒ VaultTree
constructor
A new instance of VaultTree.
- #tree ⇒ Object
Constructor Details
#initialize(catacomb:) ⇒ VaultTree
Returns a new instance of VaultTree.
25 26 27 |
# File 'lib/vaulty/vault_tree.rb', line 25 def initialize(catacomb:) @catacomb = catacomb end |
Instance Attribute Details
#catacomb ⇒ Object (readonly)
Returns the value of attribute catacomb.
24 25 26 |
# File 'lib/vaulty/vault_tree.rb', line 24 def catacomb @catacomb end |
Instance Method Details
#flatten ⇒ Object
37 38 39 |
# File 'lib/vaulty/vault_tree.rb', line 37 def flatten flatten_tree(Array(render)) end |