Sha256: 739acfdfbe8840dc554476eb902e0e5a4631b26db80a3e46134b86f9135f9f60
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
# frozen_string_literal: true module Phlexi module Display module Structure # Superclass for Namespace and Field classes. Represents a node in the display tree structure. # # @attr_reader [Symbol] key The node's key # @attr_reader [Node, nil] parent The node's parent in the tree structure class Node attr_reader :key, :parent # Initializes a new Node instance. # # @param key [Symbol, String] The key for the node # @param parent [Node, nil] The parent node def initialize(key, parent:) @key = :"#{key}" @parent = parent end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phlexi-display-0.0.2 | lib/phlexi/display/structure/node.rb |