Method: I18n::Inflector::LazyEnumerator.for
- Defined in:
- lib/i18n-inflector/lazy_enum.rb
permalink .for(enumerable) ⇒ I18n::Inflector::LazyEnumerator
Create a new instance that iterates over the passed Enumerable
68 69 70 71 72 73 74 |
# File 'lib/i18n-inflector/lazy_enum.rb', line 68 def self.for(enumerable) new do |y| enumerable.each do |e| y << e end end end |