Sha256: 2142d2495de1510aaf7138d10bb5b93babd56399417567cd1a62cfefe48612f4

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

module Phlexi
  module Form
    module Structure
      # Superclass for Namespace and Field classes. Not much to it other than it has a `name`
      # and `parent` node attribute. Think of it as a tree.
      class Node
        attr_reader :key, :parent

        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-form-0.2.0 lib/phlexi/form/structure/node.rb