class Integer

Public Instance Methods

to_yaml( opts = {} ) click to toggle source
Calls superclass method Object#to_yaml
# File lib/syck/rubytypes.rb, line 371
def to_yaml( opts = {} )
return super unless YAML == Syck
        Syck::quick_emit( nil, opts ) do |out|
    out.scalar( "tag:yaml.org,2002:int", self.to_s, :plain )
end
end