Module: PSON::Pure::Generator::GeneratorMethods::Object

Defined in:
lib/vendor/puppet/external/pson/pure/generator.rb

Instance Method Summary collapse

Instance Method Details

#to_psonObject

Converts this object to a string (calling #to_s), converts it to a PSON string, and returns the result. This is a fallback, if no special method #to_pson was defined for some object.



199
# File 'lib/vendor/puppet/external/pson/pure/generator.rb', line 199

def to_pson(*) to_s.to_pson end