1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# frozen_string_literal: true
# The root module for the application.
#
# This module contains all core functionality.
# The version of the application.
=
# Default configuration options.
= {
timeout: 30,
retries: 3
}.freeze
# A nested module for utilities.
#
# Contains helper methods and utilities.
# Formats a string for display.
#
# @param value [String] the value to format
# @param uppercase [Boolean] whether to uppercase
# @return [String] the formatted string
uppercase ? value.upcase : value
end
end
# A deeply nested class.
#
# Demonstrates namespace handling.
# The core configuration.
#
# @return [Hash]
attr_reader :config
# Initializes with configuration.
#
# @param config [Hash] the configuration hash
@config = config
end
end
end