Sha256: 6088303bd1ca6a9dd4633ad16e8ab157c6aa3a202d3ef0689ce060d06463fb17
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true module Phlexi module Table 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-table-0.0.1 | lib/phlexi/table/structure/node.rb |