1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

2 commits

Author SHA1 Message Date
Ryan Fitzgerald
a9a49ee8a3 Make object path resolution more robust (fix #957)
This fixes #957 and should make object path resolution more predictable
in general. Instead of splitting the path on "/" before doing any
parsing, we use `StringScanner` and `complete_expression?` to scan
through the string looking for complete slash-delimited Ruby
expressions.

It also turned out that separating the code for handling "-" from the
path-resolution code simplified things a lot. It doesn't really make
sense for "-" to be in there anyway, since paths like "foo/-/bar" don't
mean anything.
2014-04-28 00:41:19 -07:00
Ryan Fitzgerald
2467871169 Extract object path resolution into a class 2014-04-27 17:28:56 -07:00