Class: Array
Instance Method Summary collapse
-
#collect_with_index(&block) ⇒ Object
Collection with the index.
- #nice_runnable(quiet = true) ⇒ Object
- #runnable(quiet = true) ⇒ Object
Instance Method Details
#collect_with_index(&block) ⇒ Object
Collection with the index
7 8 9 |
# File 'lib/core/array.rb', line 7 def collect_with_index &block self.enum_for(:each_with_index).collect &block end |
#nice_runnable(quiet = true) ⇒ Object
13 14 15 |
# File 'lib/core/array.rb', line 13 def nice_runnable(quiet=true) self.join(" \n ").nice_runnable(quiet) end |
#runnable(quiet = true) ⇒ Object
10 11 12 |
# File 'lib/core/array.rb', line 10 def runnable(quiet=true) self.join(" \n ").runnable(quiet) end |