Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/oxmlk/extensions.rb

Instance Method Summary collapse

Instance Method Details

#between(separator, &block) ⇒ Object



2
3
4
# File 'lib/oxmlk/extensions.rb', line 2

def between(separator, &block)
  split(separator).map(&block).join(separator)
end