class Proc

Public Instance Methods

proc * n → n click to toggle source

Runs self for n times.

# File lib/alda-rb/patches.rb, line 148
def * n
  if !lambda? || arity == 1
    n.times &self
  else
    n.times { self.() }
  end
end