Class: Uttk::Dumpers::Yaml
- Inherits:
-
Dumper
- Object
- Logger::Backend
- Dumper
- Uttk::Dumpers::Yaml
- Includes:
- Concrete
- Defined in:
- lib/uttk/dumpers/Yaml.rb
Constant Summary collapse
- MAP_INDENT =
2
- MAP_SHIFT =
' ' * MAP_INDENT
- OMAP_SHIFT =
' ' * 4
Instance Attribute Summary
Attributes inherited from Dumper
Instance Method Summary collapse
-
#initialize(*a, &b) ⇒ Yaml
constructor
A new instance of Yaml.
- #puts_header ⇒ Object
- #update(*a, &b) ⇒ Object
Methods inherited from Dumper
#<<, #each_output, #flush, #print, #puts
Constructor Details
#initialize(*a, &b) ⇒ Yaml
Returns a new instance of Yaml.
45 46 47 48 49 50 51 52 |
# File 'lib/uttk/dumpers/Yaml.rb', line 45 def initialize ( *a, &b ) super @indent = '' @stack_indent = [] @endl = true @start = false @opts = {:uttk => true, :Inline => true} end |