Skip to content
This repository has been archived by the owner on Feb 19, 2018. It is now read-only.

Changed behaviour of empty arrays and hashes as content #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jede
Copy link

@jede jede commented Aug 30, 2011

Hi!

I ran in to the problem that the following:

ul do
  articles.each do |article|
    li article.title
  end
end

would result in:

    []

if articles was empty. Therefore I added a check so if the content has the method empty? and the method is true, it is represented as an empty string.

I also changed the Rakefile some, since it produced an error in the way it was written.

Best regards,
Johannes Edelstam

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant