mixins/pair_enumerable_container |
module PairEnumerableContainer |
Public Methods |
Determine if a container contains an element with a given value.
value | the value to search for. |
---|
Returns: true if the value was found, false otherwise.
value? is an alias for has_value?.
Determine if a container contains an element with a given key.
key | the key to search for. |
---|
Returns: true if the key was found, false otherwise.
include? is an alias for has_key?.
key? is an alias for has_key?.
member? is an alias for has_key?.
Returns: the last value from yield.
Iterate through all the values in the container, in order.
Returns: the last value from the yield.
Create an array populated with all the keys in the container.
Returns: an array containing all the keys in the container.
Create an array populated with all the values in the container.
Returns: an array containing all the values in the container.