Class: Object

### Home Classes Methods

### In Files

- lib/toml/monkey_patch.rb

### Parent

BasicObject

### Methods

- #toml_table?
- #toml_table_array?

### Files

- LICENSE

### Class/Module Index

Quicksearch

- TOML
- TOML::Generator
- TOML::Key
- TOML::Parser
- TOML::Parslet
- TOML::Table
- TOML::TableArray
- TOML::Transformer
- Array
- DateTime
- FalseClass
- Hash
- Numeric
- Object
- String
- TrueClass

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.