Skip to content

add dup method #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

add dup method #7

wants to merge 1 commit into from

Conversation

elstgav
Copy link
Contributor

@elstgav elstgav commented Jun 10, 2014

No description provided.

@@ -41,6 +41,10 @@ def respond_to?(method, include_private = false)
end
end

def dup
self.class.new(attributes)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we dup the attributes as well? or even do a deep dup?

@chingor13 chingor13 closed this Feb 26, 2015
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