[#409331] Capture HTML table data, pass to Ruby, pass back and display result in HTML text field — Hubert Wagner <lists@...>

Hello :

11 messages 2013/08/04

[#409336] Rakefile Error - Please Help — "Jennifer T." <lists@...>

Hi,

13 messages 2013/08/04
[#409341] Re: Rakefile Error - Please Help — Hassan Schroeder <hassan.schroeder@...> 2013/08/04

On Sun, Aug 4, 2013 at 7:41 AM, Jennifer T. <lists@ruby-forum.com> wrote:

Re: Using % for printng strings

From: sto.mar@...
Date: 2013-08-04 18:02:04 UTC
List: ruby-talk #409345
Am 04.08.2013 19:45, schrieb David Acosta:
> Hello comunity, I'm trying some code from ruby cookbook, and i have
> this:
> 
> %{Here is number #{class InstantClass
>   def bar
>    "Some text"
>   end
> end
> InstantClass.new.bar
> }.}
> 
> It is supposed to print me "Here is Some text" but, it doesn't bring me
> anything.
> 
> What can i do in this case o what could be the reason why it doesn't
> show anything?

You do not do anything with the string.

Use `puts %{...}' to output the string to screen or enter
it into irb (which by default outputs the value of all
entered expressions)

Regards,
Marcus


-- 
GitHub: https://github.com/stomar/
PGP:    0x6B3A101A

In This Thread

Prev Next