Sha256: 942c21e9bc26ec0b29309c696834f6501651f6b3786b2dc1398d1dab166fa835
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
# frozen_string_literal: false class Object def self.yaml_tag url Psych.add_tag(url, self) end ### # call-seq: to_yaml(options = {}) # # Convert an object to YAML. See Psych.dump for more information on the # available +options+. def to_yaml options = {} Psych.dump self, options end end if defined?(::IRB) require 'psych/y' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
psych-3.0.0.beta2-java | lib/psych/core_ext.rb |
psych-3.0.0.beta2 | lib/psych/core_ext.rb |