Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
roktas committed Oct 10, 2024
1 parent 19b1a7d commit c24ffb4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions graphics/lib/sevgi/graphics/mixtures/call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ class << self
end

def self.call(mod, receiver, ...)
tap do
callables(mod).each { it.bind(receiver).call(...) }
end
callables(mod).map { it.bind(receiver).call(...) }.last # return last callable return value
end

def self.callables(mod)
Expand Down

0 comments on commit c24ffb4

Please sign in to comment.