class method
Psych::Visitors::Emitter.new
new(io, options = {})
ext/psych/lib/psych/visitors/emitter.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/psych/lib/psych/visitors/emitter.rb, line 5
def initialize io, options = {}
opts = [:indentation, :canonical, :line_width].find_all { |opt|
options.key?(opt)
}
if opts.empty?
@handler = Psych::Emitter.new io
else
du = Handler::DumperOptions.new
opts.each { |option| du.send :"#{option}=", options[option] }
@handler = Psych::Emitter.new io, du
end
end
No documentation available
See also
#visit_Psych_Nodes_Alias
#visit_Psych_Nodes_Document
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0