Sha256: f2d1d4b613cfea725caf24089d60b008d5282e8010fbb3b3cdcf7ba676eec022

Contents?: true

Size: 374 Bytes

Versions: 19

Compression:

Stored size: 374 Bytes

Contents

String.class_eval do
  def formatize
    self.split('_',2).last.strip
  end
  
  def collect &block
    self.split('',1).collect &block
  end
  
  def to_a
    self.split('',1)
  end
end

Array.class_eval do
  def join_and_enclose seperator, *args
    left_end = (args[0] or "")
    right_end = (args[1] or left_end)
    left_end + self.join(seperator) + right_end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
citero_engine-3.0.0.beta lib/citero_engine/core_ext.rb
citero_engine-3.0.0.alpha3 lib/citero_engine/core_ext.rb
citero_engine-3.0.0.alpha2 lib/citero_engine/core_ext.rb
citero_engine-3.0.0.alpha lib/citero_engine/core_ext.rb
ex_cite-2.1.0 lib/ex_cite/core_ext.rb
ex_cite-2.0.0 lib/ex_cite/core_ext.rb
ex_cite-2.0.0.pre.alpha.1 lib/ex_cite/core_ext.rb
ex_cite-2.0.0.pre.alpha lib/ex_cite/core_ext.rb
ex_cite-1.3.2 lib/ex_cite/core_ext.rb
ex_cite-1.3.1 lib/ex_cite/core_ext.rb
ex_cite-1.3.0 lib/ex_cite/core_ext.rb
ex_cite-1.2.7 lib/ex_cite/core_ext.rb
ex_cite-1.2.6 lib/ex_cite/core_ext.rb
ex_cite-1.2.5 lib/ex_cite/core_ext.rb
ex_cite-1.2.4 lib/ex_cite/core_ext.rb
ex_cite-1.2.3 lib/ex_cite/core_ext.rb
ex_cite-1.2.2 lib/ex_cite/core_ext.rb
ex_cite-1.2.1 lib/ex_cite/core_ext.rb
ex_cite-1.1.0 lib/ex_cite/core_ext.rb