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 14 def initialize(io, options = {}) 15 super(Packer.new(io, options), options) 16 end
Public Instance Methods
build_payload() { |packer| ... }
click to toggle source
# File lib/puppet/pops/serialization/json.rb 33 def build_payload 34 yield(@packer) 35 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 21 def clear_io 22 @packer.clear_io 23 end
extension_packer()
click to toggle source
# File lib/puppet/pops/serialization/json.rb 25 def extension_packer 26 @packer 27 end
packer()
click to toggle source
# File lib/puppet/pops/serialization/json.rb 29 def packer 30 @packer 31 end
to_a()
click to toggle source
# File lib/puppet/pops/serialization/json.rb 37 def to_a 38 @packer.to_a 39 end
to_json()
click to toggle source
# File lib/puppet/pops/serialization/json.rb 41 def to_json 42 @packer.to_json 43 end