Class: AdfBuilder::Nodes::Name
- Defined in:
- lib/adf_builder/nodes/shared.rb
Instance Attribute Summary
Attributes inherited from Node
#attributes, #children, #tag_name, #value
Instance Method Summary collapse
-
#initialize(value, part: nil, type: nil) ⇒ Name
constructor
A new instance of Name.
Methods inherited from Node
#add_child, #method_missing, #remove_children, #respond_to_missing?, #to_xml
Methods included from Validations
Constructor Details
#initialize(value, part: nil, type: nil) ⇒ Name
Returns a new instance of Name.
50 51 52 53 54 55 56 |
# File 'lib/adf_builder/nodes/shared.rb', line 50 def initialize(value, part: nil, type: nil) super() @tag_name = :name @value = value @attributes[:part] = part if part @attributes[:type] = type if type end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AdfBuilder::Nodes::Node