class LuckyInflector::Inflector::Inflections::Uncountables
- LuckyInflector::Inflector::Inflections::Uncountables
- Array(String)
- Reference
- Object
Defined in:
lucky_inflector/inflector/inflections.crConstructors
Instance Method Summary
- #<<(*word)
- #add(words)
-
#delete(entry)
Removes all items from
self
that are equal to obj. - #uncountable?(str)
Constructor Detail
Instance Method Detail
def delete(entry)
#
Description copied from class Array(String)
Removes all items from self
that are equal to obj.
Returns the last found element that was equal to obj,
if any, or nil
if not found.
a = ["a", "b", "b", "b", "c"]
a.delete("b") # => "b"
a # => ["a", "c"]
a.delete("x") # => nil
a # => ["a", "c"]