Class: TomlRB::Dumper

Inherits:
Object
  • Object
show all
Defined in:
lib/toml-rb/dumper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Dumper

Returns a new instance of Dumper.



9
10
11
12
13
# File 'lib/toml-rb/dumper.rb', line 9

def initialize(hash)
  @toml_str = ""

  visit(hash, [])
end

Instance Attribute Details

#toml_strObject (readonly)

Returns the value of attribute toml_str.



7
8
9
# File 'lib/toml-rb/dumper.rb', line 7

def toml_str
  @toml_str
end