class Conjur::DSL2::YAML::Handler::Root
Handles the root document, which should be a sequence.
Attributes
handler[R]
result[R]
Public Class Methods
new(handler)
click to toggle source
Calls superclass method
Conjur::DSL2::YAML::Handler::Base::new
# File lib/conjur/dsl2/yaml/handler.rb, line 105 def initialize handler super nil @handler = handler @result = nil end
Public Instance Methods
end_sequence()
click to toggle source
Finish the sequence, and the document.
# File lib/conjur/dsl2/yaml/handler.rb, line 129 def end_sequence pop_handler end
sequence(seq)
click to toggle source
# File lib/conjur/dsl2/yaml/handler.rb, line 114 def sequence seq raise "Already got sequence result" if @result @result = seq end
start_sequence()
click to toggle source
The document root is expected to start with a sequence. A Sequence
handler is constructed with no implicit type. This sub-handler handles the message.
# File lib/conjur/dsl2/yaml/handler.rb, line 122 def start_sequence Sequence.new(self, nil).tap do |h| h.push_handler end.result end