module Enumerable
Public Instance Methods
each_with_roman_index(&block)
click to toggle source
# File lib/romaniac/ext/enumerable.rb, line 11 def each_with_roman_index(&block) with_roman_index(&block) end
with_roman_index(offset = 1) { |o, Roman(offset)| ... }
click to toggle source
# File lib/romaniac/ext/enumerable.rb, line 2 def with_roman_index(offset = 1) return to_enum(:with_roman_index, offset) unless block_given? each do |o| val = yield(o, Roman(offset)) offset += 1 val end end