Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/everythingrb/core/array.rb
Instance Method Summary collapse
-
#join_map(join_with = "") {|Object| ... } ⇒ String
Combines filter_map and join operations.
Instance Method Details
#join_map(join_with = "") {|Object| ... } ⇒ String
Combines filter_map and join operations
21 22 23 24 25 |
# File 'lib/everythingrb/core/array.rb', line 21 def join_map(join_with = "", &block) block = ->(i) { i } if block.nil? filter_map(&block).join(join_with) end |