Class: Axn::Internal::SubfieldTree::Node

Inherits:
Data
  • Object
show all
Defined in:
lib/axn/internal/subfield_tree.rb

Overview

configs is empty for an implicit node. Multiple configs on one node means the same wire path was declared via two routes (e.g. expects :baz, on: "foo.bar" and expects :baz, on: :bar where bar is itself a subfield of foo); runtime validates each independently, so consumers must honor all of them.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



21
22
23
# File 'lib/axn/internal/subfield_tree.rb', line 21

def children
  @children
end

#configsObject (readonly)

Returns the value of attribute configs

Returns:

  • (Object)

    the current value of configs



21
22
23
# File 'lib/axn/internal/subfield_tree.rb', line 21

def configs
  @configs
end

Instance Method Details

#configObject



22
# File 'lib/axn/internal/subfield_tree.rb', line 22

def config = configs.first

#implicit?Boolean

Returns:

  • (Boolean)


23
# File 'lib/axn/internal/subfield_tree.rb', line 23

def implicit? = configs.empty?