Closed rewritten closed 2 years ago
Code Climate has analyzed commit ab82fbbc and detected 0 issues on this pull request.
View more on Code Climate.
Maybe overriding the class method :===
is too invasive, as this would break:
case my_service_instance
when MyServiceClass
:something
when MyOtherServiceClass
:something_else
else
nil
end
Although, I don't see why one would branch on a service instance type...
Procs also respond to square-brackets:
my_proc = ->(str) { str.upcase }
my_proc['asdf']
# => "ASDF"
but I know no one that uses it.
Hold your horses, this will not work with inheritance (alias
is scoped to the definition scope)
Hey man, thanks again for the proposal!
Unfortunately Iām currently sick so it might take me a few days to come back to you, sorry about that!
I like the proc thingy, not so sure about the triple equals, but still, I think that it would be better to implement those in separate PRs.
Hey man, thanks again for the proposal!
Unfortunately Iām currently sick so it might take me a few days to come back to you, sorry about that!
Haven't forgotten about these, I'm very sorry for the wait. I finally recovered this week but I have some stuff that has piled on because of that downtime and has kept me from taking a look at these. I want to take a good look at all of these!
Also, hi @Papipo! š
Hi @iovis š . Maybe you got sick because you had to go to the office?
No office for us for a while haha
This will allow constructs like
and