Skip to content

Conversation

feliksg
Copy link
Contributor

@feliksg feliksg commented Feb 22, 2018

No description provided.

Copy link
Owner

@c910335 c910335 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for late response.

src/crinder.cr Outdated
@@ -106,18 +106,28 @@ class Crinder::Base(T)
end

macro __process
def self.render(object : T) : String
@@object = object
def self.render(object : Array(T) | T) : String
Copy link
Owner

@c910335 c910335 Mar 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about splitting this into two methods?
self.render(array : Array(T)) and self.render(object : T)

@feliksg
Copy link
Contributor Author

feliksg commented Mar 6, 2018

@c910335 Yes you're right. I updated the PR to have 2 render methods.

@c910335 c910335 merged commit 06143c2 into c910335:master Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants