Class: NxtSchema::Template::Leaf

Inherits:
Base
  • Object
show all
Defined in:
lib/nxt_schema/template/leaf.rb

Instance Attribute Summary

Attributes inherited from Base

#additional_keys_strategy, #configuration, #context, #key_transformer, #maybe_evaluators, #meta, #name, #on_evaluators, #options, #parent_node, #path, #root_node, #type, #type_system, #validations

Instance Method Summary collapse

Methods inherited from Base

#apply, #apply!, #build_node, #default, #maybe, #omnipresent?, #on, #optional?, #root_node?, #validate, #validate_with

Constructor Details

#initialize(name:, type: :String, parent_node:, **options, &block) ⇒ Leaf

Returns a new instance of Leaf.



4
5
6
# File 'lib/nxt_schema/template/leaf.rb', line 4

def initialize(name:, type: :String, parent_node:, **options, &block)
  super
end

Instance Method Details

#leaf?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/nxt_schema/template/leaf.rb', line 8

def leaf?
  true
end