Module: ROXML::CoreExtensions::Array::Conversions
- Included in:
- Array
- Defined in:
- lib/roxml/extensions/array/conversions.rb
Instance Method Summary collapse
Instance Method Details
#apply_to(val) ⇒ Object
5 6 7 8 |
# File 'lib/roxml/extensions/array/conversions.rb', line 5 def apply_to(val) # Only makes sense for arrays of blocks... maybe better outside Array... inject(val) {|val, block| block.call(val) } end |