Sha256: 780ee4bb1d1b35d27d9c16a1e4bea956e2b390b4f0794e1767c8fd2fbd5e86d6
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
class Array # for ReVIEW::Node # def to_doc self.map(&:to_doc).join("") end # for ReVIEW::Node # def to_raw self.map(&:to_raw).join("") end if [].map.kind_of?(Array) # Ruby 1.8 def map(&block) if !block_given? return to_enum :map else collect(&block) ## XXX same as original end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
review-2.0.0.beta1 | lib/review/extentions/array.rb |