Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/terrimporter/array_monkeypatch.rb
Instance Method Summary collapse
Instance Method Details
#add_missing_extension!(ending) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/terrimporter/array_monkeypatch.rb', line 2 def add_missing_extension!(ending) self.collect! do |item| unless item =~ /#{ending}$/ item + ending else item end end end |