Class: TomlRB::Dumper
- Inherits:
-
Object
- Object
- TomlRB::Dumper
- Defined in:
- lib/toml-rb/dumper.rb
Instance Attribute Summary collapse
-
#toml_str ⇒ Object
readonly
Returns the value of attribute toml_str.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Dumper
constructor
A new instance of Dumper.
Constructor Details
#initialize(hash) ⇒ Dumper
Returns a new instance of Dumper.
5 6 7 8 9 |
# File 'lib/toml-rb/dumper.rb', line 5 def initialize(hash) @toml_str = '' visit(hash, []) end |
Instance Attribute Details
#toml_str ⇒ Object (readonly)
Returns the value of attribute toml_str.
3 4 5 |
# File 'lib/toml-rb/dumper.rb', line 3 def toml_str @toml_str end |