Numeric (Class)

In: yaml/rubytypes.rb
Parent: Object

Send Integer, Booleans, NilClass to String

Methods

Public Instance methods

[Source]

# File yaml/rubytypes.rb, line 578
    def is_complex_yaml?
        false
    end

[Source]

# File yaml/rubytypes.rb, line 581
        def to_yaml( opts = {} )
                str = self.to_s
                if str == "Infinity"
                        str = ".Inf"
                elsif str == "-Infinity"
                        str = "-.Inf"
                elsif str == "NaN"
                        str = ".NaN"
                end
                opts[:KeepValue] = true
                str.to_yaml( opts )
        end

[Validate]