# File lib/toml/generator.rb, line 6 def initialize(doc) # Ensure all the to_toml methods are injected into the base Ruby classes # used by TOML. self.class.inject! @doc = doc @body = doc.to_toml return @body end