Class: TTY::Tree::LeafNode

Inherits:
Node
  • Object
show all
Defined in:
lib/tty/tree/node.rb

Overview

Node

Instance Attribute Summary

Attributes inherited from Node

#level, #name, #parent, #path, #prefix, #stat

Instance Method Summary collapse

Methods inherited from Node

#==, #full_path, #hidden?, #initialize, #root?, #to_s

Constructor Details

This class inherits a constructor from TTY::Tree::Node

Instance Method Details

#leaf?Boolean

Returns:

  • (Boolean)


85
86
87
# File 'lib/tty/tree/node.rb', line 85

def leaf?
  true
end