Skip to content

Conversation

@xuorig
Copy link
Contributor

@xuorig xuorig commented Sep 11, 2017

#933

Allows defining an argument from an existing argument a bit like it's already possible with fields.

return type_or_argument.redefine(name: name.to_s)
end

argument = if block_given?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should we handle a block when provided an existing arg? Redefine attributes in the block 🤔 ? That might be confusing.

Copy link
Owner

Choose a reason for hiding this comment

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

It might come in handy, but I'm happy to leave it for later.

We do it for fields but it makes more sense there because some things (like argument) must be defined in the block.

@rmosolgo rmosolgo merged commit 82729b4 into rmosolgo:master Sep 14, 2017
@rmosolgo rmosolgo added this to the 1.7.0 milestone Sep 14, 2017
@rmosolgo
Copy link
Owner

Thanks for taking care of this one!

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