Module: Extensions::Array

Defined in:
lib/baltix/extensions.rb

Instance Method Summary collapse

Instance Method Details

#actjoin(array) ⇒ Object

actjoin(array) => [<pre_match1>, <pre_match2>, <pre_match3>, <post_match>]; array = [match1, match2, match3]



47
48
49
# File 'lib/baltix/extensions.rb', line 47

def actjoin array
   self.map.with_index { |x, i| [ x, array[i] ].compact }.flatten.join
end