Class: KDL::Node::Custom
Instance Attribute Summary
Attributes inherited from KDL::Node
#arguments, #children, #name, #properties, #type
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from KDL::Node
#<<, #<=>, #==, #[], #arg, #args, #as_type, #child, #dash_vals, #each, #each_arg, #each_dash_val, #initialize, #inspect, #to_s
Constructor Details
This class inherits a constructor from KDL::Node
Class Method Details
.call(node, type) ⇒ Object
6
7
8
|
# File 'lib/kdl/node.rb', line 6
def self.call(node, type)
new(node.name, arguments: node.arguments, properties: node.properties, children: node.children, type:)
end
|
Instance Method Details
#to_v1 ⇒ Object
14
15
16
|
# File 'lib/kdl/node.rb', line 14
def to_v1
self
end
|
#to_v2 ⇒ Object
18
19
20
|
# File 'lib/kdl/node.rb', line 18
def to_v2
self
end
|
#version ⇒ Object
10
11
12
|
# File 'lib/kdl/node.rb', line 10
def version
nil
end
|