Class: Integer
Instance Method Summary collapse
Instance Method Details
#to_yaml(opts = {}) ⇒ Object
372 373 374 375 376 377 |
# File 'lib/syck/rubytypes.rb', line 372 def to_yaml( opts = {} ) return super unless YAML::ENGINE.syck? YAML::quick_emit( nil, opts ) do |out| out.scalar( "tag:yaml.org,2002:int", self.to_s, :plain ) end end |