Thanks, Steve!  Don't know how to search online for symbols... But I
went out yesterday and bought TFM, so that should help

On Sep 29, 9:10 am, "Steven A Bristol" <[EMAIL PROTECTED]>
wrote:
> On Mon, Sep 29, 2008 at 2:26 AM, drew <[EMAIL PROTECTED]> wrote:
>
> >  def blog_body_content blog
>
> >    youtube_videos = blog.body.scan(/\[youtube:+.+\]/)
> >    b = blog.body.dup.gsub(/\[youtube:+.+\]/, '')
> >    out = sanitize textilize(b)
> >    unless youtube_videos.empty?
> >    out << <<-EOB
> >    <strong>#{pluralize youtube_videos.size, 'video'}:</strong><br/>
> > EOB
> >    youtube_videos.each do |o|
> >    out << tb_video_link(o.gsub!(/\[youtube\:|\]/, ''))
> >      end
> >    end
> >    out
> >  end
>
> > I couldn't find documentation online for what EOB is in RoR.  I'm
> > guessing it just appends a block of html?  Is it part of some included
> > module?  Anyone got a link to documentation on it?
>
> > Thanks!
>
> It is just a delimiter. It tells ruby that that is the end of the
> multi-line string. So you could do:
>
> <<-X
> multi-line string
> X
>
> or
> <<-END_OF_STRING
> blah
> END_OF_STRING
>
> cheers,
> steven bristol
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---

Reply via email to