[#964] Bastion or SecurityManager for Ruby? — Clemens Hintze <clemens.hintze@...>

Hi,

15 messages 1999/12/10

[#989] a question about to_i — Friedrich Dominicus <Friedrich.Dominicus@...>

Sorry, I'm quite new to ruby. But I encounterd the following problem. If

17 messages 1999/12/19

[ruby-talk:01008] Blocks, Procs, and iterators

From: Dave Thomas <Dave@...>
Date: 1999-12-31 05:33:16 UTC
List: ruby-talk #1008
Is there a difference between

  def fred
    yield 1
    yield 2
  end

and

  def fred(&block)
    block.call(1)
    block.call(2)
  end


Curious of Dallas...

In This Thread

Prev Next