Skip to content

Add fetch functionality to Armoire - #8

Open
marcwinstanley wants to merge 2 commits into
onthebeach:masterfrom
marcwinstanley:feature/add-fetch-functionality
Open

Add fetch functionality to Armoire#8
marcwinstanley wants to merge 2 commits into
onthebeach:masterfrom
marcwinstanley:feature/add-fetch-functionality

Conversation

@marcwinstanley

Copy link
Copy Markdown

Previously, the fetch method was absent in Armoire, which prevented
users from obtaining a value from the settings hash, given a key, using
the fetch syntax. Added a fetch method which returns the value, given a
key, from the Armoire settings.

Marc Winstanley added 2 commits January 27, 2015 13:42
Previously, the fetch method was absent in Armoire, which prevented
users from obtaining a value from the settings hash, given a key, using
the fetch syntax.  Added a fetch method which returns the value, given a
key, from the Armoire settings.
Previously, a `fetch` method was created to retrieve array elements,
which was inefficient as a `[]` method already existed for this
functionality. Replaced the `fetch` method with an alias, making it
available without repeating code. Additionally, added unit tests to
check this functionality.
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.

1 participant