Sha256: faff1004ab672087496e17c80ed26115896ce56406e4420704f7580f958cf9f2

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

require 'ostruct'
require 'debug_helper'

ostruct = OpenStruct.new(
                        :a => OpenStruct.new(
                                            :b => 0,
                                            :c => 1,
                        ),
                        :d => OpenStruct.new(
                                            :e => 2,
                                            :f => 3,
                        )
)
DebugHelper.show(ostruct, 'My nested struct')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
debug_helper-2.1.0 markdown/readme/classes/open_struct/nested/show.rb
debug_helper-2.0.0 markdown/readme/classes/open_struct/nested/show.rb
debug_helper-1.8.0 markdown/readme/classes/open_struct/nested/show.rb