ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:71705] [Ruby trunk - Bug #11746] [Open] RDoc incorrect example call method on heredoc
       [not found] <redmine.issue-11746.20151127120703@ruby-lang.org>
@ 2015-11-27 12:07 ` jmgcrespo
  2015-12-01 14:11 ` [ruby-core:71778] [Ruby trunk - Bug #11746] " jmgcrespo
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: jmgcrespo @ 2015-11-27 12:07 UTC (permalink / raw)
  To: ruby-core

Issue #11746 has been reported by Jose Manuel Garcia.

----------------------------------------
Bug #11746: RDoc incorrect example call method on heredoc
https://bugs.ruby-lang.org/issues/11746

* Author: Jose Manuel Garcia
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The sample code for a call on a heredoc at http://ruby-doc.org/core-2.3.0_preview1/doc/syntax/literals_rdoc.html#label-Here+Documents
 for

**To call a method on a heredoc place it after the opening identifier:**

I think it should be 

~~~
expected_result = <<HEREDOC.chomp
One plus one is #{1 + 1}
HEREDOC
~~~
instead of

~~~
expected_result = "One plus one is #{1 + 1}
".chomp
~~~
Regards





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:71778] [Ruby trunk - Bug #11746] RDoc incorrect example call method on heredoc
       [not found] <redmine.issue-11746.20151127120703@ruby-lang.org>
  2015-11-27 12:07 ` [ruby-core:71705] [Ruby trunk - Bug #11746] [Open] RDoc incorrect example call method on heredoc jmgcrespo
@ 2015-12-01 14:11 ` jmgcrespo
  2015-12-01 14:15 ` [ruby-core:71780] " jmgcrespo
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: jmgcrespo @ 2015-12-01 14:11 UTC (permalink / raw)
  To: ruby-core

Issue #11746 has been updated by Jose Manuel Garcia.

Assignee set to Jose Manuel Garcia

----------------------------------------
Bug #11746: RDoc incorrect example call method on heredoc
https://bugs.ruby-lang.org/issues/11746#change-55187

* Author: Jose Manuel Garcia
* Status: Open
* Priority: Normal
* Assignee: Jose Manuel Garcia
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The sample code for a call on a heredoc at http://ruby-doc.org/core-2.3.0_preview1/doc/syntax/literals_rdoc.html#label-Here+Documents
 for

**To call a method on a heredoc place it after the opening identifier:**

I think it should be 

~~~
expected_result = <<HEREDOC.chomp
One plus one is #{1 + 1}
HEREDOC
~~~
instead of

~~~
expected_result = "One plus one is #{1 + 1}
".chomp
~~~
Regards





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:71780] [Ruby trunk - Bug #11746] RDoc incorrect example call method on heredoc
       [not found] <redmine.issue-11746.20151127120703@ruby-lang.org>
  2015-11-27 12:07 ` [ruby-core:71705] [Ruby trunk - Bug #11746] [Open] RDoc incorrect example call method on heredoc jmgcrespo
  2015-12-01 14:11 ` [ruby-core:71778] [Ruby trunk - Bug #11746] " jmgcrespo
@ 2015-12-01 14:15 ` jmgcrespo
  2015-12-07  7:27 ` [ruby-core:71884] " ko1
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: jmgcrespo @ 2015-12-01 14:15 UTC (permalink / raw)
  To: ruby-core

Issue #11746 has been updated by Jose Manuel Garcia.

Assignee deleted (Jose Manuel Garcia)

----------------------------------------
Bug #11746: RDoc incorrect example call method on heredoc
https://bugs.ruby-lang.org/issues/11746#change-55190

* Author: Jose Manuel Garcia
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The sample code for a call on a heredoc at http://ruby-doc.org/core-2.3.0_preview1/doc/syntax/literals_rdoc.html#label-Here+Documents
 for

**To call a method on a heredoc place it after the opening identifier:**

I think it should be 

~~~
expected_result = <<HEREDOC.chomp
One plus one is #{1 + 1}
HEREDOC
~~~
instead of

~~~
expected_result = "One plus one is #{1 + 1}
".chomp
~~~
Regards





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:71884] [Ruby trunk - Bug #11746] RDoc incorrect example call method on heredoc
       [not found] <redmine.issue-11746.20151127120703@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2015-12-01 14:15 ` [ruby-core:71780] " jmgcrespo
@ 2015-12-07  7:27 ` ko1
  2016-01-24  2:07 ` [ruby-core:73341] " andrew
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: ko1 @ 2015-12-07  7:27 UTC (permalink / raw)
  To: ruby-core

Issue #11746 has been updated by Koichi Sasada.

Assignee set to Zachary Scott

----------------------------------------
Bug #11746: RDoc incorrect example call method on heredoc
https://bugs.ruby-lang.org/issues/11746#change-55289

* Author: Jose Manuel Garcia
* Status: Open
* Priority: Normal
* Assignee: Zachary Scott
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The sample code for a call on a heredoc at http://ruby-doc.org/core-2.3.0_preview1/doc/syntax/literals_rdoc.html#label-Here+Documents
 for

**To call a method on a heredoc place it after the opening identifier:**

I think it should be 

~~~
expected_result = <<HEREDOC.chomp
One plus one is #{1 + 1}
HEREDOC
~~~
instead of

~~~
expected_result = "One plus one is #{1 + 1}
".chomp
~~~
Regards





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:73341] [Ruby trunk - Bug #11746] RDoc incorrect example call method on heredoc
       [not found] <redmine.issue-11746.20151127120703@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2015-12-07  7:27 ` [ruby-core:71884] " ko1
@ 2016-01-24  2:07 ` andrew
  2019-01-13  8:06 ` [ruby-core:91061] [Ruby trunk Bug#11746] " hsbt
  2019-07-23 22:05 ` [ruby-core:93896] [Ruby master " merch-redmine
  6 siblings, 0 replies; 7+ messages in thread
From: andrew @ 2016-01-24  2:07 UTC (permalink / raw)
  To: ruby-core

Issue #11746 has been updated by Andrew Vit.


This looks like a limitation in the RDoc ruby lexer. The documentation in doc/syntax/literals.rdoc looks correct.

Compare the outputs here:

```
require 'rdoc'
options = nil
ruby = [
  'expected_result = <<-EXPECTED.chomp', 
  'One plus one is #{1 + 1}', 
  'EXPECTED'
].join("\n")

puts RDoc::RubyLex.tokenize(ruby, options)
puts RDoc::RubyLex.tokenize(ruby.gsub(".chomp", ""), options)
```

----------------------------------------
Bug #11746: RDoc incorrect example call method on heredoc
https://bugs.ruby-lang.org/issues/11746#change-56569

* Author: Jose Manuel Garcia
* Status: Open
* Priority: Normal
* Assignee: Zachary Scott
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The sample code for a call on a heredoc at http://ruby-doc.org/core-2.3.0_preview1/doc/syntax/literals_rdoc.html#label-Here+Documents
 for

**To call a method on a heredoc place it after the opening identifier:**

I think it should be 

~~~
expected_result = <<HEREDOC.chomp
One plus one is #{1 + 1}
HEREDOC
~~~
instead of

~~~
expected_result = "One plus one is #{1 + 1}
".chomp
~~~
Regards





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:91061] [Ruby trunk Bug#11746] RDoc incorrect example call method on heredoc
       [not found] <redmine.issue-11746.20151127120703@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2016-01-24  2:07 ` [ruby-core:73341] " andrew
@ 2019-01-13  8:06 ` hsbt
  2019-07-23 22:05 ` [ruby-core:93896] [Ruby master " merch-redmine
  6 siblings, 0 replies; 7+ messages in thread
From: hsbt @ 2019-01-13  8:06 UTC (permalink / raw)
  To: ruby-core

Issue #11746 has been updated by hsbt (Hiroshi SHIBATA).

Assignee changed from zzak (Zachary Scott) to aycabta (aycabta .)
Status changed from Open to Assigned

----------------------------------------
Bug #11746: RDoc incorrect example call method on heredoc
https://bugs.ruby-lang.org/issues/11746#change-76280

* Author: manuel (Jose Manuel Garcia)
* Status: Assigned
* Priority: Normal
* Assignee: aycabta (aycabta .)
* Target version: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The sample code for a call on a heredoc at http://ruby-doc.org/core-2.3.0_preview1/doc/syntax/literals_rdoc.html#label-Here+Documents
 for

**To call a method on a heredoc place it after the opening identifier:**

I think it should be 

~~~
expected_result = <<HEREDOC.chomp
One plus one is #{1 + 1}
HEREDOC
~~~
instead of

~~~
expected_result = "One plus one is #{1 + 1}
".chomp
~~~
Regards





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:93896] [Ruby master Bug#11746] RDoc incorrect example call method on heredoc
       [not found] <redmine.issue-11746.20151127120703@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2019-01-13  8:06 ` [ruby-core:91061] [Ruby trunk Bug#11746] " hsbt
@ 2019-07-23 22:05 ` merch-redmine
  6 siblings, 0 replies; 7+ messages in thread
From: merch-redmine @ 2019-07-23 22:05 UTC (permalink / raw)
  To: ruby-core

Issue #11746 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Assigned to Closed

It looks like this issue has been resolved in the current version of RDoc (see https://docs.ruby-lang.org/en/trunk/syntax/literals_rdoc.html).

----------------------------------------
Bug #11746: RDoc incorrect example call method on heredoc
https://bugs.ruby-lang.org/issues/11746#change-79936

* Author: manuel (Jose Manuel Garcia)
* Status: Closed
* Priority: Normal
* Assignee: aycabta (aycabta .)
* Target version: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The sample code for a call on a heredoc at http://ruby-doc.org/core-2.3.0_preview1/doc/syntax/literals_rdoc.html#label-Here+Documents
 for

**To call a method on a heredoc place it after the opening identifier:**

I think it should be 

~~~
expected_result = <<HEREDOC.chomp
One plus one is #{1 + 1}
HEREDOC
~~~
instead of

~~~
expected_result = "One plus one is #{1 + 1}
".chomp
~~~
Regards





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-07-23 22:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-11746.20151127120703@ruby-lang.org>
2015-11-27 12:07 ` [ruby-core:71705] [Ruby trunk - Bug #11746] [Open] RDoc incorrect example call method on heredoc jmgcrespo
2015-12-01 14:11 ` [ruby-core:71778] [Ruby trunk - Bug #11746] " jmgcrespo
2015-12-01 14:15 ` [ruby-core:71780] " jmgcrespo
2015-12-07  7:27 ` [ruby-core:71884] " ko1
2016-01-24  2:07 ` [ruby-core:73341] " andrew
2019-01-13  8:06 ` [ruby-core:91061] [Ruby trunk Bug#11746] " hsbt
2019-07-23 22:05 ` [ruby-core:93896] [Ruby master " merch-redmine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).