class Array
Public Instance Methods
map(&block)
click to toggle source
Ruby 1.8
# File lib/review/extentions/array.rb, line 17 def map(&block) if !block_given? return to_enum :map else collect(&block) ## XXX same as original end end
to_doc()
click to toggle source
for ReVIEW::Node
# File lib/review/extentions/array.rb, line 5 def to_doc self.map(&:to_doc).join("") end
to_raw()
click to toggle source
for ReVIEW::Node
# File lib/review/extentions/array.rb, line 11 def to_raw self.map(&:to_raw).join("") end