Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2617

Beginner's Beginner

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!gegeweb.org!talisker.lacave.net!lacave.net!not-for-mail
From william nelson <wanelson23@gmail.com>
Newsgroups comp.lang.ruby
Subject Beginner's Beginner
Date Mon, 11 Apr 2011 04:26:29 -0500
Organization Service de news de lacave.net
Lines 16
Message-ID <5eb7523dd74392a56e954a3486b4830f@ruby-forum.com> (permalink)
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1302514008 36395 65.111.164.187 (11 Apr 2011 09:26:48 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Mon, 11 Apr 2011 09:26:48 +0000 (UTC)
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 381282
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <5eb7523dd74392a56e954a3486b4830f@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:2617

Show key headers only | View raw


I am trying to execute the Sudoku Solver listed in the book "The Ruby
Programming Book" (pages 17 -24)

The code for the Sudoku Module is available online but I do not
understand the following instruction:

require 'sudoku'
puts Sudoku.solver(Sudoku::Puzzle.new(ARGF.readlines))

Can someone walk me through (baby-steps) how to actually "require"
sudoku so that I can see the Module in action. The more explicit your
answer the better since I am a newbee's newbee!

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Beginner's Beginner william nelson <wanelson23@gmail.com> - 2011-04-11 04:26 -0500
  Re: Beginner's Beginner 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-11 15:04 -0500
    Re: Beginner's Beginner 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-11 18:23 -0500

csiph-web