Class: Integer
Instance Method Summary collapse
Instance Method Details
#to_yaml(opts = {}) ⇒ Object
359 360 361 362 363 |
# File 'lib/yaml/rubytypes.rb', line 359 def to_yaml( opts = {} ) YAML::quick_emit( nil, opts ) do |out| out.scalar( "tag:yaml.org,2002:int", self.to_s, :plain ) end end |