Sha256: 04b420b29be7766e3f6064436f8decbd3055beb789bef890c54142b33879d605
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 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 def outputize output if self.include? "@output" self.gsub!("@output", output) end self end end Hash.class_eval do def outputize output self.values.each {|val| val.outputize output} end end Array.class_eval do def outputize output self.each {|val| val.outputize output} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ex_cite-1.0.1 | lib/ex_cite/core_ext.rb |
ex_cite-1.0.0 | lib/ex_cite/core_ext.rb |