General

Profile

robotdana (Dana Sherson)

  • Login: robotdana
  • Registered on: 07/03/2018
  • Last sign in: 04/28/2025

Issues

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

Activity

04/28/2025

01:55 AM Ruby Bug #21288 (Closed): StringScanner#named_captures overrides matched captures with unmatched captures
StringScanner#named_captures operates inconsistently with MatchData#named_captures when there is the same name used in multiple branches
For Regexp it uses the value that was captured (useful). For StringScanner it uses the one last in ...
robotdana (Dana Sherson)

11/17/2023

09:41 PM Ruby Revision ef72970a (git): Fix File.directory? doc hidding File::Stat#directory? doc
Now the documentation that was already in the codebase for
`File::Stat#directory?` shows up.
robotdana (Dana Sherson)

04/25/2020

02:27 PM Ruby Feature #16817 (Open): attr_predicate or attr_query or attr_something for ? methods
I would like `attr_predicate` like attr_reader etc.
`attr_predicate :cat` would define a method named `:cat?` that returned the value for ivar `@cat`.
I would like this because i find myself writing this:
```
def cat?
@cat
en...
robotdana (Dana Sherson)

07/03/2018

02:37 AM Ruby Bug #14891 (Closed): Pathname#join has different behaviour to File.join
~~~ ruby
Pathname.new('/a').join('/b').to_s
# => "/b"
File.join(Pathname.new('/a'), '/b').to_s
# => "/a/b"
~~~
in my case `'/b'` was in a variable and it wasn't immediately obvious why it wasn't working when I moved to use Pathna...
robotdana (Dana Sherson)

Also available in: Atom