Class: KDL::V1::Node
Instance Attribute Summary
Attributes inherited from Node
#arguments, #children, #name, #properties, #type
Instance Method Summary collapse
Methods inherited from 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
Instance Method Details
#to_v1 ⇒ Object
10 11 12 |
# File 'lib/kdl/v1/node.rb', line 10 def to_v1 self end |
#to_v2 ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/kdl/v1/node.rb', line 14 def to_v2 ::KDL::Node.new(name, arguments: arguments.map(&:to_v2), properties: properties.transform_values(&:to_v2), children: children.map(&:to_v2), type: type ) end |
#version ⇒ Object
6 7 8 |
# File 'lib/kdl/v1/node.rb', line 6 def version 1 end |