Skip to content

Commit 40c25b2

Browse files
committed
Mutant coding style changes
1 parent 08880d6 commit 40c25b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/teckel/chain.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ def errors
4545
# @return [Teckel::Chain::Result] The result object wrapping
4646
# the result value, the success state and last executed step.
4747
def call(input = nil)
48-
default_settings = self.default_settings
48+
default_settings = default_settings()
4949

5050
runner =
5151
if default_settings
52-
self.runner.new(self, default_settings)
52+
runner().new(self, default_settings)
5353
else
54-
self.runner.new(self)
54+
runner().new(self)
5555
end
5656

5757
if around
@@ -67,9 +67,9 @@ def call(input = nil)
6767
# @return [#call] A callable, either a {Teckel::Chain::Runner} or,
6868
# when configured with an around hook, a +Proc+
6969
def with(settings)
70-
runner = self.runner.new(self, settings)
70+
runner = runner().new(self, settings)
7171
if around
72-
around.curry(2)[runner]
72+
around.curry[runner]
7373
else
7474
runner
7575
end

0 commit comments

Comments
 (0)