Parent

Methods

Files

Array

Public Instance Methods

to_toml() click to toggle source
# File lib/toml/monkey_patch.rb, line 15
def to_toml
  unless self.map(&:class).uniq.length < 2
    raise "All array values must be the same type"
  end
  "[" + self.map {|v| v.to_toml }.join(",") + "]"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.