nrser 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nrser/char/alpha_numeric_sub.rb +9 -19
  3. data/lib/nrser/char/special.rb +5 -5
  4. data/lib/nrser/core_ext/array.rb +36 -13
  5. data/lib/nrser/core_ext/enumerable.rb +1 -0
  6. data/lib/nrser/core_ext/enumerable/find_map.rb +1 -1
  7. data/lib/nrser/core_ext/hash/bury.rb +3 -0
  8. data/lib/nrser/core_ext/hash/extract_values_at.rb +2 -2
  9. data/lib/nrser/core_ext/method/full_name.rb +1 -1
  10. data/lib/nrser/core_ext/module/method_objects.rb +1 -1
  11. data/lib/nrser/core_ext/module/source_locations.rb +27 -15
  12. data/lib/nrser/core_ext/object/lazy_var.rb +1 -1
  13. data/lib/nrser/core_ext/pathname.rb +67 -12
  14. data/lib/nrser/core_ext/pathname/subpath.rb +86 -0
  15. data/lib/nrser/core_ext/string.rb +28 -1
  16. data/lib/nrser/core_ext/symbol.rb +11 -12
  17. data/lib/nrser/errors/README.md +154 -0
  18. data/lib/nrser/errors/attr_error.rb +146 -53
  19. data/lib/nrser/errors/count_error.rb +61 -12
  20. data/lib/nrser/errors/nicer_error.rb +42 -71
  21. data/lib/nrser/errors/value_error.rb +53 -58
  22. data/lib/nrser/functions.rb +0 -2
  23. data/lib/nrser/functions/enumerable.rb +5 -17
  24. data/lib/nrser/functions/enumerable/associate.rb +14 -5
  25. data/lib/nrser/functions/enumerable/find_all_map.rb +1 -1
  26. data/lib/nrser/functions/enumerable/include_slice/array_include_slice.rb +1 -1
  27. data/lib/nrser/functions/hash/bury.rb +2 -12
  28. data/lib/nrser/functions/merge_by.rb +2 -2
  29. data/lib/nrser/functions/module/method_objects.rb +2 -2
  30. data/lib/nrser/functions/path.rb +185 -165
  31. data/lib/nrser/functions/path/normalized.rb +84 -0
  32. data/lib/nrser/functions/string.rb +4 -4
  33. data/lib/nrser/functions/text/README.md +4 -0
  34. data/lib/nrser/functions/text/format.rb +53 -0
  35. data/lib/nrser/functions/text/indentation.rb +6 -6
  36. data/lib/nrser/functions/text/word_wrap.rb +2 -2
  37. data/lib/nrser/functions/tree/map_leaves.rb +3 -3
  38. data/lib/nrser/functions/tree/map_tree.rb +2 -2
  39. data/lib/nrser/functions/tree/transform.rb +1 -18
  40. data/lib/nrser/gem_ext/README.md +4 -0
  41. data/lib/nrser/labs/README.md +8 -0
  42. data/lib/nrser/labs/config.rb +163 -0
  43. data/lib/nrser/labs/i8.rb +49 -159
  44. data/lib/nrser/labs/i8/struct.rb +167 -0
  45. data/lib/nrser/labs/i8/struct/hash.rb +140 -0
  46. data/lib/nrser/labs/i8/struct/vector.rb +149 -0
  47. data/lib/nrser/labs/i8/surjection.rb +211 -0
  48. data/lib/nrser/labs/lots/consumer.rb +19 -0
  49. data/lib/nrser/labs/lots/parser.rb +21 -1
  50. data/lib/nrser/labs/stash.rb +4 -4
  51. data/lib/nrser/log.rb +25 -21
  52. data/lib/nrser/log/appender/sync.rb +15 -11
  53. data/lib/nrser/log/formatters/color.rb +0 -3
  54. data/lib/nrser/log/formatters/mixin.rb +4 -4
  55. data/lib/nrser/log/logger.rb +54 -6
  56. data/lib/nrser/log/mixin.rb +2 -1
  57. data/lib/nrser/log/plugin.rb +6 -6
  58. data/lib/nrser/log/types.rb +46 -29
  59. data/lib/nrser/mean_streak.rb +0 -8
  60. data/lib/nrser/mean_streak/document.rb +1 -4
  61. data/lib/nrser/message.rb +3 -3
  62. data/lib/nrser/meta/README.md +4 -0
  63. data/lib/nrser/meta/lazy_attr.rb +2 -2
  64. data/lib/nrser/meta/source/location.rb +1 -1
  65. data/lib/nrser/props.rb +34 -3
  66. data/lib/nrser/props/class_methods.rb +2 -1
  67. data/lib/nrser/props/instance_methods.rb +9 -9
  68. data/lib/nrser/props/metadata.rb +4 -12
  69. data/lib/nrser/props/mutable/stash.rb +5 -2
  70. data/lib/nrser/props/prop.rb +10 -19
  71. data/lib/nrser/rspex.rb +1 -20
  72. data/lib/nrser/rspex/example_group/describe_attribute.rb +3 -0
  73. data/lib/nrser/rspex/example_group/describe_called_with.rb +9 -4
  74. data/lib/nrser/rspex/example_group/describe_case.rb +1 -0
  75. data/lib/nrser/rspex/example_group/describe_class.rb +2 -0
  76. data/lib/nrser/rspex/example_group/describe_group.rb +1 -1
  77. data/lib/nrser/rspex/example_group/describe_instance.rb +3 -1
  78. data/lib/nrser/rspex/example_group/describe_message.rb +1 -1
  79. data/lib/nrser/rspex/example_group/describe_method.rb +64 -30
  80. data/lib/nrser/rspex/example_group/describe_response_to.rb +1 -1
  81. data/lib/nrser/rspex/example_group/describe_section.rb +4 -1
  82. data/lib/nrser/rspex/example_group/describe_sent_to.rb +1 -1
  83. data/lib/nrser/rspex/example_group/describe_setup.rb +1 -0
  84. data/lib/nrser/rspex/example_group/describe_source_file.rb +1 -1
  85. data/lib/nrser/rspex/example_group/describe_spec_file.rb +4 -2
  86. data/lib/nrser/rspex/example_group/describe_when.rb +2 -1
  87. data/lib/nrser/rspex/example_group/describe_x.rb +5 -5
  88. data/lib/nrser/rspex/format.rb +0 -15
  89. data/lib/nrser/sugar/method_missing_forwarder.rb +3 -3
  90. data/lib/nrser/sys/env/path.rb +2 -28
  91. data/lib/nrser/types.rb +63 -12
  92. data/lib/nrser/types/README.md +76 -0
  93. data/lib/nrser/types/arrays.rb +192 -137
  94. data/lib/nrser/types/attributes.rb +269 -0
  95. data/lib/nrser/types/booleans.rb +134 -83
  96. data/lib/nrser/types/bounded.rb +110 -47
  97. data/lib/nrser/types/collections.rb +119 -0
  98. data/lib/nrser/types/combinators.rb +283 -196
  99. data/lib/nrser/types/doc/display_table.md +66 -0
  100. data/lib/nrser/types/eqiuvalent.rb +91 -0
  101. data/lib/nrser/types/errors/check_error.rb +5 -11
  102. data/lib/nrser/types/errors/from_string_error.rb +3 -3
  103. data/lib/nrser/types/factory.rb +287 -20
  104. data/lib/nrser/types/hashes.rb +227 -179
  105. data/lib/nrser/types/in.rb +73 -36
  106. data/lib/nrser/types/is.rb +67 -60
  107. data/lib/nrser/types/is_a.rb +141 -84
  108. data/lib/nrser/types/labels.rb +45 -16
  109. data/lib/nrser/types/maybe.rb +6 -3
  110. data/lib/nrser/types/nil.rb +64 -27
  111. data/lib/nrser/types/not.rb +92 -34
  112. data/lib/nrser/types/numbers.rb +224 -169
  113. data/lib/nrser/types/pairs.rb +113 -89
  114. data/lib/nrser/types/paths.rb +250 -137
  115. data/lib/nrser/types/responds.rb +167 -89
  116. data/lib/nrser/types/selector.rb +234 -0
  117. data/lib/nrser/types/shape.rb +136 -65
  118. data/lib/nrser/types/strings.rb +189 -63
  119. data/lib/nrser/types/symbols.rb +83 -33
  120. data/lib/nrser/types/top.rb +89 -0
  121. data/lib/nrser/types/tuples.rb +134 -98
  122. data/lib/nrser/types/type.rb +617 -505
  123. data/lib/nrser/types/when.rb +123 -98
  124. data/lib/nrser/types/where.rb +182 -91
  125. data/lib/nrser/version.rb +1 -1
  126. data/spec/lib/nrser/core_ext/pathname/subpath_spec.rb +22 -0
  127. data/spec/lib/nrser/errors/attr_error_spec.rb +68 -0
  128. data/spec/lib/nrser/errors/count_error_spec.rb +69 -0
  129. data/spec/lib/nrser/functions/path/normalize_path_spec.rb +35 -0
  130. data/spec/lib/nrser/functions/tree/map_tree_spec.rb +74 -96
  131. data/spec/lib/nrser/functions/tree/transform_spec.rb +11 -11
  132. data/spec/lib/nrser/labs/config_spec.rb +22 -0
  133. data/spec/lib/nrser/labs/i8/struct_spec.rb +39 -0
  134. data/spec/lib/nrser/types/display_spec.rb +50 -0
  135. data/spec/lib/nrser/types/paths_spec.rb +16 -10
  136. data/spec/lib/nrser/types/selector_spec.rb +125 -0
  137. data/spec/spec_helper.rb +4 -5
  138. metadata +105 -22
  139. data/lib/nrser/types/any.rb +0 -41
  140. data/lib/nrser/types/attrs.rb +0 -213
  141. data/lib/nrser/types/trees.rb +0 -42
@@ -47,14 +47,6 @@ class NRSER::Props::Metadata
47
47
  # Class Methods
48
48
  # ======================================================================
49
49
 
50
- # @todo Document has_metadata? method.
51
- #
52
- # @param [type] arg_name
53
- # @todo Add name param description.
54
- #
55
- # @return [return_type]
56
- # @todo Document return value.
57
- #
58
50
  def self.has_metadata? klass
59
51
  klass.instance_variable_defined? VARIABLE_NAME
60
52
  end # .has_metadata?
@@ -119,10 +111,10 @@ class NRSER::Props::Metadata
119
111
 
120
112
  # Get a map of property names to property instances.
121
113
  #
122
- # @param [Boolean] only_own:
114
+ # @param [Boolean] only_own
123
115
  # Don't include super-class properties.
124
116
  #
125
- # @param [Boolean] only_primary:
117
+ # @param [Boolean] only_primary
126
118
  # Don't include properties that have a {NRSER::Props::Prop#source}.
127
119
  #
128
120
  # @return [Hash{ Symbol => NRSER::Props::Prop }]
@@ -151,7 +143,7 @@ class NRSER::Props::Metadata
151
143
  # @param [Symbol] name
152
144
  # The name of the property.
153
145
  #
154
- # @param [Hash{ Symbol => Object }] **opts
146
+ # @param [Hash{ Symbol => Object }] opts
155
147
  # Constructor options for {NRSER::Props::Prop}.
156
148
  #
157
149
  # @return [NRSER::Props::Prop]
@@ -203,7 +195,7 @@ class NRSER::Props::Metadata
203
195
  # Collection of prop values iterable by key/value pairs or by indexed
204
196
  # entries.
205
197
  #
206
- # @param [Proc<(NRSER::Props::Prop, VALUE)>] &block
198
+ # @param [Proc<(NRSER::Props::Prop, VALUE)>] block
207
199
  # Block that will receive primary prop and value pairs.
208
200
  #
209
201
  # @raise [TypeError]
@@ -1,6 +1,9 @@
1
1
  # encoding: UTF-8
2
2
  # frozen_string_literal: true
3
3
 
4
+ # TODO I don't know if this ever worked...? Looks like it was supposed to be
5
+ # mutable prop'd object support backed by an {NRSER::Stash} instance.
6
+
4
7
  # Requirements
5
8
  # =======================================================================
6
9
 
@@ -106,13 +109,13 @@ module NRSER::Props::Mutable::Stash
106
109
  # Override {NRSER::Props::InstanceMethods#to_data} to handle non-prop
107
110
  # values in the {NRSER::Stash}.
108
111
  #
109
- # @param [Boolean] only_props:
112
+ # @param [Boolean] only_props
110
113
  # When `true` only prop values will be added to the data hash.
111
114
  #
112
115
  # Otherwise, any non-prop keys and vales will be added as well
113
116
  # (default behavior).
114
117
  #
115
- # @param **kwds
118
+ # @param [Hash] kwds
116
119
  # See {NRSER::Props::InstanceMethods#to_data}.
117
120
  #
118
121
  # @return (see NRSER::Props::InstanceMethods#to_data)
@@ -120,13 +120,13 @@ class Prop
120
120
  # `.prop` "macro" defined at {NRSER::Props::Props::ClassMethods#prop}
121
121
  # that is extended in to classes including {NRSER::Props::Props}.
122
122
  #
123
- # @param [nil | Proc | Object] default:
123
+ # @param [nil | Proc | Object] default
124
124
  # A default value or a {Proc} used to get default values for *primary*
125
125
  # props. *Dervied* props (those that have a {#source}) may not
126
126
  #
127
127
  # At least one of `default:` and `source:` must be `nil`.
128
128
  #
129
- # @param [nil | Symbol | String | Proc] source:
129
+ # @param [nil | Symbol | String | Proc] source
130
130
  # Source that provides the prop's value. See details for how each type is
131
131
  # handled in {#source}. Strings are converted to symbols.
132
132
  #
@@ -390,13 +390,9 @@ class Prop
390
390
  end # #full_name
391
391
 
392
392
 
393
- # Test if this prop is configured to provide default values -
393
+ # Test if this prop is configured to provide default values.
394
394
  #
395
- # @param [type] arg_name
396
- # @todo Add name param description.
397
- #
398
- # @return [return_type]
399
- # @todo Document return value.
395
+ # @return [Boolean]
400
396
  #
401
397
  def has_default?
402
398
  @has_default
@@ -451,26 +447,21 @@ class Prop
451
447
  end # #source?
452
448
 
453
449
 
454
- # @todo Document instance_variable_source? method.
455
- #
456
- # @param [type] arg_name
457
- # @todo Add name param description.
450
+ # Is the value of this prop coming from an instance variable?
458
451
  #
459
- # @return [return_type]
460
- # @todo Document return value.
452
+ # @return [Boolean]
461
453
  #
462
454
  def instance_variable_source?
463
455
  @instance_variable_source
464
456
  end # #instance_variable_source?
465
457
 
466
458
 
467
- # @todo Document primary? method.
459
+ # Does this property represent and independent value (**not** sourced)?
468
460
  #
469
- # @param [type] arg_name
470
- # @todo Add name param description.
461
+ # Primary properties are important because they're the ones you need to
462
+ # store and transport to reconstruct the instance.
471
463
  #
472
- # @return [return_type]
473
- # @todo Document return value.
464
+ # @return [Boolean]
474
465
  #
475
466
  def primary?
476
467
  !source?
data/lib/nrser/rspex.rb CHANGED
@@ -44,10 +44,7 @@ using NRSER
44
44
 
45
45
  # Merge "expectation" hashes by appending all clauses for each state.
46
46
  #
47
- # @example
48
- #
49
- #
50
- # @param [Array<Hash>] *expectations
47
+ # @param [Array<Hash>] expectations
51
48
  # Splat of "expectation" hashes - see the examples.
52
49
  #
53
50
  def merge_expectations *expectations
@@ -152,27 +149,11 @@ module NRSER::RSpex
152
149
  # =====================================================================
153
150
 
154
151
 
155
- # @todo Document short_s method.
156
- #
157
- # @param [type] arg_name
158
- # @todo Add name param description.
159
- #
160
- # @return [return_type]
161
- # @todo Document return value.
162
- #
163
152
  def self.short_s value, max = 64
164
153
  NRSER.smart_ellipsis value.inspect, max
165
154
  end # .short_s
166
155
 
167
156
 
168
- # @todo Document format method.
169
- #
170
- # @param [type] arg_name
171
- # @todo Add name param description.
172
- #
173
- # @return [return_type]
174
- # @todo Document return value.
175
- #
176
157
  def self.format *args
177
158
  NRSER::RSpex::Format.description *args
178
159
  end # .format
@@ -20,5 +20,8 @@ module NRSER::RSpex::ExampleGroup
20
20
 
21
21
  # Shorter name
22
22
  alias_method :describe_attr, :describe_attribute
23
+
24
+ # BOLDER name
25
+ alias_method :ATTRIBUTE, :describe_attribute
23
26
 
24
27
  end # module NRSER::RSpex::ExampleGroup
@@ -15,10 +15,10 @@ module NRSER::RSpex::ExampleGroup
15
15
  # end
16
16
  # end
17
17
  #
18
- # @param [Array] *args
18
+ # @param [Array] args
19
19
  # Arguments to call `subject` with to produce the new subject.
20
20
  #
21
- # @param [#call] &body
21
+ # @param [#call] body
22
22
  # Block to execute in the context of the example group after refining
23
23
  # the subject.
24
24
  #
@@ -33,11 +33,14 @@ module NRSER::RSpex::ExampleGroup
33
33
 
34
34
  # Short / old name
35
35
  alias_method :called_with, :describe_called_with
36
+
37
+ # New / bold name
38
+ alias_method :CALLED_WITH, :describe_called_with
36
39
 
37
40
 
38
41
  # Version of {#describe_called_with} for when you have no arguments.
39
42
  #
40
- # @param [#call] &body
43
+ # @param [#call] body
41
44
  # Block to execute in the context of the example group after refining
42
45
  # the subject.
43
46
  #
@@ -52,7 +55,9 @@ module NRSER::RSpex::ExampleGroup
52
55
 
53
56
  alias_method :called, :describe_called
54
57
  alias_method :when_called, :describe_called
55
-
58
+
59
+ # new / bold name
60
+ alias_method :CALLED, :describe_called
56
61
 
57
62
 
58
63
  end # module NRSER::RSpex::ExampleGroup
@@ -16,6 +16,7 @@ module NRSER::RSpex::ExampleGroup
16
16
  end # #describe_case
17
17
 
18
18
  alias_method :use_case, :describe_case
19
+ alias_method :CASE, :describe_case
19
20
 
20
21
  # Older name
21
22
  alias_method :describe_use_case, :describe_case
@@ -29,4 +29,6 @@ module NRSER::RSpex::ExampleGroup
29
29
  &body
30
30
  end # #describe_class
31
31
 
32
+ alias_method :CLASS, :describe_class
33
+
32
34
  end # module NRSER::RSpex::ExampleGroup
@@ -8,7 +8,7 @@ module NRSER::RSpex::ExampleGroup
8
8
  #
9
9
  # @param *description (see #describe_x)
10
10
  #
11
- # @param [Hash<Symbol, Object>] **metadata
11
+ # @param [Hash<Symbol, Object>] metadata
12
12
  # RSpec metadata to set for the example group.
13
13
  #
14
14
  # See the `metadata` keyword argument to {#describe_x}.
@@ -5,7 +5,7 @@ module NRSER::RSpex::ExampleGroup
5
5
  # Describe an instance of the described class by providing arguments for
6
6
  # it's construction.
7
7
  #
8
- # @param [Array] *constructor_args
8
+ # @param [Array] constructor_args
9
9
  # Arguments to pass to `.new` on {#described_class} to create instances.
10
10
  #
11
11
  # @return [void]
@@ -21,5 +21,7 @@ module NRSER::RSpex::ExampleGroup
21
21
  },
22
22
  &body
23
23
  end # #describe_instance
24
+
25
+ alias_method :INSTANCE, :describe_instance
24
26
 
25
27
  end # module NRSER::RSpex::ExampleGroup
@@ -13,7 +13,7 @@ module NRSER::RSpex::ExampleGroup
13
13
  #
14
14
  # @see #describe_x
15
15
  #
16
- # @param [Array] *args
16
+ # @param [Array] args
17
17
  # Passed to {NRSER::Message.from} to get or create the message instance.
18
18
  #
19
19
  # @param &body (see #describe_x)
@@ -5,44 +5,75 @@ module NRSER::RSpex::ExampleGroup
5
5
 
6
6
  # Describe a method of the parent subject.
7
7
  #
8
+ # @param [Method | Symbol | String] method
9
+ # The method being described:
10
+ #
11
+ # 1. {Method} instance - used directly.
12
+ #
13
+ # 2. {Symbol}, {String} -
14
+ #
8
15
  # @return [void]
9
16
  #
10
- def describe_method method_name, *description, **metadata, &body
11
- # Due to legacy, we only auto-bind if the name is a symbol
12
- #
13
- # TODO Get rid of this
14
- #
15
- subject_block = if method_name.is_a? Symbol
16
- -> { super().method method_name }
17
- end
18
-
19
- name_prefix = if self.respond_to?( :metadata ) &&
20
- self.metadata.key?( :constructor_args )
21
- '#'
22
- else
23
- '.'
24
- end
17
+ def describe_method method,
18
+ *description,
19
+ bind_subject: nil,
20
+ **metadata,
21
+ &body
22
+ case method
23
+ when Method
24
+ method_name = method.name
25
+ subject_block = -> { method }
26
+ bind_subject = true
27
+ name_string = NRSER::RSpex::Format.md_code_quote \
28
+ "#{ method.receiver }.#{ method.name }"
25
29
 
26
- method = if self.try( :metadata )
27
- getter = if self.metadata.key?( :constructor_args )
28
- :instance_method
30
+ when Symbol, String
31
+ method_name = method
32
+
33
+ # Due to legacy, we only auto-bind if the name is a symbol
34
+ #
35
+ # TODO Get rid of this
36
+ #
37
+ bind_subject = method_name.is_a?( Symbol ) if bind_subject.nil?
38
+
39
+ subject_block = if bind_subject
40
+ -> { super().method method_name }
41
+ end
42
+
43
+ name_prefix = if self.respond_to?( :metadata ) &&
44
+ self.metadata.key?( :constructor_args )
45
+ '#'
29
46
  else
30
- :method
47
+ '.'
31
48
  end
32
-
33
- target = self.metadata[:class] || self.metadata[:module]
34
-
35
- if target
36
- begin
37
- target.public_send getter, method_name
38
- rescue
39
- nil
49
+
50
+ method = if self.try( :metadata )
51
+ getter = if self.metadata.key?( :constructor_args )
52
+ :instance_method
53
+ else
54
+ :method
55
+ end
56
+
57
+ target = self.metadata[:class] || self.metadata[:module]
58
+
59
+ if target
60
+ begin
61
+ target.public_send getter, method_name
62
+ rescue
63
+ nil
64
+ end
40
65
  end
41
66
  end
42
- end
43
67
 
44
- name_string = NRSER::RSpex::Format.md_code_quote \
45
- "#{ name_prefix }#{ method_name }"
68
+ name_string = NRSER::RSpex::Format.md_code_quote \
69
+ "#{ name_prefix }#{ method_name }"
70
+
71
+ else
72
+ raise NRSER::TypeError.new \
73
+ "Expected Method, Symbol or String for `method_name`, found",
74
+ method_name
75
+
76
+ end # case method_arg
46
77
 
47
78
  # Create the RSpec example group context
48
79
  describe_x \
@@ -54,8 +85,11 @@ module NRSER::RSpex::ExampleGroup
54
85
  **metadata,
55
86
  method_name: method_name,
56
87
  },
88
+ bind_subject: bind_subject,
57
89
  subject_block: subject_block,
58
90
  &body
59
91
  end # #describe_method
92
+
93
+ alias_method :METHOD, :describe_method
60
94
 
61
95
  end # module NRSER::RSpex::ExampleGroup
@@ -8,7 +8,7 @@ module NRSER::RSpex::ExampleGroup
8
8
  # Pretty much a short-cut for nesting {#describe_method} /
9
9
  # {#describe_called_with}. Meh.
10
10
  #
11
- # @param [Array] *args
11
+ # @param [Array] args
12
12
  # Passed to {NRSER::Message.from} to get or create the message instance.
13
13
  #
14
14
  # @param &body (see #describe_x)
@@ -14,7 +14,7 @@ module NRSER::RSpex::ExampleGroup
14
14
  #
15
15
  # @param *description (see #describe_x)
16
16
  #
17
- # @param [Hash<Symbol, Object>] **metadata
17
+ # @param [Hash<Symbol, Object>] metadata
18
18
  # RSpec metadata to set for the example group.
19
19
  #
20
20
  # See the `metadata` keyword argument to {#describe_x}.
@@ -34,5 +34,8 @@ module NRSER::RSpex::ExampleGroup
34
34
 
35
35
  # Old name
36
36
  alias_method :describe_topic, :describe_section
37
+
38
+ # BOLD NAME!
39
+ alias_method :SECTION, :describe_section
37
40
 
38
41
  end # module NRSER::RSpex::ExampleGroup
@@ -13,7 +13,7 @@ module NRSER::RSpex::ExampleGroup
13
13
  # If it's a {Wrapper} it will be unwrapped in example contexts of the
14
14
  # new example group.
15
15
  #
16
- # @param [Boolean] publicly:
16
+ # @param [Boolean] publicly
17
17
  # Send message publicly via {Object#public_send} (default) or privately
18
18
  # via {Object.send}.
19
19
  #
@@ -18,5 +18,6 @@ module NRSER::RSpex::ExampleGroup
18
18
  end # #describe_setup
19
19
 
20
20
  alias_method :setup, :describe_setup
21
+ alias_method :SETUP, :describe_setup
21
22
 
22
23
  end # module NRSER::RSpex::ExampleGroup