In Files

  • syck/lib/syck/rubytypes.rb

Parent

Methods

Integer

Public Instance Methods

to_yaml( opts = {} ) click to toggle source
 
               # File syck/lib/syck/rubytypes.rb, line 370
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