Class: String

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

Instance Method Summary collapse

Instance Method Details

#partition_all(reg) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/zfben_libjs/lib.rb', line 2

def partition_all(reg)
  r = self.partition(reg)
  if reg =~ r[2]
    r[2] = r[2].partition_all(reg)
  end
  return r.flatten
end