Class: KDL::V1::Document
Instance Attribute Summary
Attributes inherited from Document
#nodes
Instance Method Summary
collapse
Methods inherited from Document
#<<, #==, #[], #arg, #args, #dash_vals, #each, #each_arg, #each_dash_val, #initialize, #inspect, #to_s
Constructor Details
This class inherits a constructor from KDL::Document
Instance Method Details
#to_v1 ⇒ Object
10
11
12
|
# File 'lib/kdl/v1/document.rb', line 10
def to_v1
self
end
|
#to_v2 ⇒ Object
14
15
16
|
# File 'lib/kdl/v1/document.rb', line 14
def to_v2
::KDL::Document.new(nodes.map(&:to_v2))
end
|
#version ⇒ Object
6
7
8
|
# File 'lib/kdl/v1/document.rb', line 6
def version
1
end
|