iGEL (Johannes Barre)
- Login: iGEL
- Email: igel@igels.net
- Registered on: 09/20/2015
- Last sign in: 05/13/2020
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
05/13/2020
-
06:11 PM Ruby Bug #16856 (Closed): Structs accepting keyword arguments issue a warning with Ruby 2.7
- This code is issuing a warning with Ruby 2.7, but should not:
``` ruby
class NotFine < Struct.new(:x)
def initialize(x, arg:)
end
end
class Fine
def initialize(x, arg:)
end
end
NotFine.new(1, arg: 1) # This is cau...
09/20/2015
-
03:37 PM Ruby Feature #11541 (Closed): Let attr_accessor, _reader & _writer return symbols of the defined methods
- Since Ruby 2.1, `def` returns a symbol with the name of the just defined method, so you can easily pass it to visibility modifiers like `private`, `protected`, and `public`. Why not let `attr_reader` & friends return an array with the na...