class Object

Adds to_toml methods to base Ruby classes used by the generator.

Public Instance Methods

toml_table?() click to toggle source
# File lib/toml/monkey_patch.rb, line 3
def toml_table?
  self.kind_of?(Hash)
end
toml_table_array?() click to toggle source
# File lib/toml/monkey_patch.rb, line 6
def toml_table_array?
  self.kind_of?(Array) && self.first.toml_table?
end