code-ruby 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,8 @@ class Code
5
5
  class IdentifierList < List
6
6
  CLASS_DOCUMENTATION = {
7
7
  name: "IdentifierList",
8
- description: "stores ordered identifier names used to assign nested values.",
8
+ description:
9
+ "stores ordered identifier names used to assign nested values.",
9
10
  examples: [
10
11
  "IdentifierList",
11
12
  "IdentifierList.new([:user, :name]).first",
@@ -92,11 +93,13 @@ class Code
92
93
  end
93
94
 
94
95
  if assignment_operator == "="
95
- receiver.call(
96
- **args,
97
- operator: "#{raw.last}=",
98
- arguments: Object::List.new([code_value])
99
- ).tap { persist_class_receiver(receiver, args.fetch(:context)) }
96
+ receiver
97
+ .call(
98
+ **args,
99
+ operator: "#{raw.last}=",
100
+ arguments: Object::List.new([code_value])
101
+ )
102
+ .tap { persist_class_receiver(receiver, args.fetch(:context)) }
100
103
  else
101
104
  next_value =
102
105
  receiver.call(
@@ -109,11 +112,13 @@ class Code
109
112
  arguments: Object::List.new([code_value])
110
113
  )
111
114
 
112
- receiver.call(
113
- **args,
114
- operator: "#{raw.last}=",
115
- arguments: Object::List.new([next_value])
116
- ).tap { persist_class_receiver(receiver, args.fetch(:context)) }
115
+ receiver
116
+ .call(
117
+ **args,
118
+ operator: "#{raw.last}=",
119
+ arguments: Object::List.new([next_value])
120
+ )
121
+ .tap { persist_class_receiver(receiver, args.fetch(:context)) }
117
122
  end
118
123
  end
119
124