General

Profile

ed_ (Ed Mangimelli)

  • Login: ed_
  • Registered on: 03/09/2022
  • Last sign in: 09/11/2022

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

03/10/2022

06:12 AM Ruby Feature #18618: no clobber def
@Dan0042 I like that syntax --much more convenient-- but I don't know if it would be useful to me if it were just toggling the existing warning.
But that syntax seems great:
```ruby
class MyClass < LibraryProvidedClass
no_clobber...
ed_ (Ed Mangimelli)
05:50 AM Ruby Feature #18618: no clobber def
>Isn’t this the same idea as final methods in other languages like Java?
Had this discussion with a coworker --`final` is similar but is for the opposite direction. `final` lets the library *author* prevent overriding; I'm wanting a t...
ed_ (Ed Mangimelli)

03/09/2022

03:31 PM Ruby Feature #18618 (Closed): no clobber def
Sometimes I want to be certain I'm not clobbering/masking a method:
```
class Dog
def bark
'bark!'
end
end
class Poodle < Dog
raise if method_defined? :bark
def bark
'bow-wow'
end
end
```
I propose c...
ed_ (Ed Mangimelli)

Also available in: Atom