ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: jmgcrespo@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:71778] [Ruby trunk - Bug #11746] RDoc incorrect example call method on heredoc
Date: Tue, 01 Dec 2015 14:11:10 +0000	[thread overview]
Message-ID: <redmine.journal-55187.20151201141110.7d4b73aba59bdb3d@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11746.20151127120703@ruby-lang.org

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/

  parent reply	other threads:[~2015-12-01 13:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
2015-12-01 14:15 ` [ruby-core:71780] [Ruby trunk - Bug #11746] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-55187.20151201141110.7d4b73aba59bdb3d@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).