class Psychgus::Stylers::FlowStyler
A FLOW style changer for Mappings & Sequences.
@example
require 'psychgus' data = { 'Eggs' => { 'Styles' => ['Fried', 'Scrambled', ['BBQ', 'Ketchup']], 'Colors' => ['Brown', 'White', ['Blue', 'Green']] }} puts data.to_yaml(stylers: Psychgus::FlowStyler.new) # Output: # --- {Eggs: {Styles: [Fried, Scrambled, [BBQ, Ketchup]], Colors: [Brown, White, [Blue, Green]]}} # >= level 4 (see Psychgus.hierarchy) puts data.to_yaml(stylers: Psychgus::FlowStyler.new(4)) # Output: # --- # Eggs: # Styles: [Fried, Scrambled, [BBQ, Ketchup]] # Colors: [Brown, White, [Blue, Green]] # >= level 6 (see Psychgus.hierarchy) puts data.to_yaml(stylers: Psychgus::FlowStyler.new(6)) # Output: # --- # Eggs: # Styles: # - Fried # - Scrambled # - [BBQ, Ketchup] # Colors: # - Brown # - White # - [Blue, Green]
@see Stylables::MapFlowStylable
@see Stylables::SeqFlowStylable