gam3 (Allen Morris)
- Login: gam3
- Email: gam3-ruby@gam3.net
- Registered on: 05/26/2015
- Last sign in: 09/21/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 2 | 1 | 3 |
Activity
09/16/2016
-
01:57 PM Ruby Feature #12700: regexg heredoc support
- I don't see how %r helps.
Here is an (rather forced) example of the advantage of a /HEREDOC/
~~~ ruby
a = "one"
b = "two"
raise "error" unless a.match(<</REG/x)[1] == b.match(<</REG/x)[1]
(.) # what we want to match
n # wh...
08/29/2016
-
02:41 PM Ruby Feature #12700: regexg heredoc support
- Updated pull request.
08/25/2016
-
05:40 PM Ruby Feature #12700: regexg heredoc support
- Added pull request https://github.com/ruby/ruby/pull/1418
08/24/2016
-
09:15 AM Ruby Feature #12700 (Open): regexg heredoc support
- There is support for ', ", and ` heredocs, but there is no support for /.
Example code with new feature:
~~~ ruby
first = 'first'
orig = /#{first}
match\s # match
this # match this
/x
right = <</REGEXP/x
#{first}
mat...
01/26/2016
-
02:04 AM Ruby Feature #11181: Add a line directive to Ruby
- Pull request up to date as of 2016-01-25
10/22/2015
-
05:55 PM Ruby Feature #11181: Add a line directive to Ruby
- The pull request is now at https://github.com/ruby/ruby/pull/911
06/01/2015
-
04:14 PM Ruby Bug #11205: Problem with __dir__ or it's description
- Note that `require_relative` uses `__dir__` as the base to generate an absolute path.
-
03:08 PM Ruby Bug #11205 (Closed): Problem with __dir__ or it's description
- ~~~
Kernel#__dir__
Returns the canonicalized absolute path of the directory of the file from which this method is called. It means symlinks in the path is resolved. If __FILE__ is nil, it returns nil. The return value equals to File....
05/28/2015
-
05:34 PM Ruby Feature #11181: Add a line directive to Ruby
- I have changed the code to use the **magic comment** feature. To use the directive you now use:
# -*- line: filename 1000 -*-
or
# -*- line: 1000 -*-
Where the filename is optional and the line number is greater than...
05/26/2015
-
09:30 PM Ruby Feature #11181: Add a line directive to Ruby
- Reason why 'eval "string", b, file, line' can't be used in place of line directive.
Use case: Input file looks like
file: alice
<alice>=
puts "'#{__FILE__} #{__LINE__}'" # alice line 2
<bob>
puts "...