class Puppet::Pops::Serialization::JSON::Writer
Public Class Methods
new(io, options = {})
click to toggle source
Calls superclass method
Puppet::Pops::Serialization::AbstractWriter::new
# File lib/puppet/pops/serialization/json.rb 15 def initialize(io, options = {}) 16 super(Packer.new(io, options), options) 17 end
Public Instance Methods
build_payload() { |packer| ... }
click to toggle source
# File lib/puppet/pops/serialization/json.rb 34 def build_payload 35 yield(@packer) 36 end
clear_io()
click to toggle source
Clear the underlying io stream but does not clear tabulation cache Specifically designed to enable tabulation to span more than one separately deserialized object.
# File lib/puppet/pops/serialization/json.rb 22 def clear_io 23 @packer.clear_io 24 end
extension_packer()
click to toggle source
# File lib/puppet/pops/serialization/json.rb 26 def extension_packer 27 @packer 28 end
packer()
click to toggle source
# File lib/puppet/pops/serialization/json.rb 30 def packer 31 @packer 32 end
to_a()
click to toggle source
# File lib/puppet/pops/serialization/json.rb 38 def to_a 39 @packer.to_a 40 end
to_json()
click to toggle source
# File lib/puppet/pops/serialization/json.rb 42 def to_json 43 @packer.to_json 44 end