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

View API lacks useful methods #570

Closed
ddfreyne opened this Issue May 10, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@ddfreyne
Member

ddfreyne commented May 10, 2015

  • ConfigView
    • #fetch (like Hash#fetch)
    • #key? (like Hash#key?)
  • ItemView
    • #fetch (like Hash#fetch)
    • #key? (like Hash#key?)
    • #parent (like Nanoc::Int::Item#parent)
  • MutableItemView
    • #update_attributes to bulk update attributes
  • MutableItemCollectionView
    • #concat to bulk add items

Other related changes:

  • items.create must return nil, so that it does not expose the internal entity.
@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne

ddfreyne May 10, 2015

Member

Idea: AttributesView that wraps attributes.

Member

ddfreyne commented May 10, 2015

Idea: AttributesView that wraps attributes.

@cdlm

This comment has been minimized.

Show comment
Hide comment
@cdlm

cdlm May 10, 2015

Contributor

Idea: a mixin that implements the rest of the Hash protocol, when you need objects that are like hashes.

Contributor

cdlm commented May 10, 2015

Idea: a mixin that implements the rest of the Hash protocol, when you need objects that are like hashes.

@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne

ddfreyne May 11, 2015

Member

See fix in #572.

Member

ddfreyne commented May 11, 2015

See fix in #572.

@ddfreyne ddfreyne closed this May 11, 2015

@ddfreyne ddfreyne modified the milestone: 4.0.0 Jun 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment