From: Leslie Viljoen Date: 2007-05-29T23:49:48+09:00 Subject: Re: Ruby Bootstrap ------=_Part_184657_2008275.1180450171501 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 5/29/07, Brian Candler wrote: > > On Tue, May 29, 2007 at 05:38:20PM +0900, Leslie Viljoen wrote: > > Where is its startup file? ie. what script loads these: > > > > >>$LOADED_FEATURES > > Whatever you typed to get the ">>" prompt. > > > =3D> ["e2mmap.rb", "irb/init.rb", "irb/workspace.rb", "irb/context.rb", > > "irb/extend-command.rb", "irb/output-method.rb", "irb/notifier.rb", > > "irb/slex.rb", "irb/ruby-token.rb", "irb/ruby-lex.rb", "readline.so", > > "irb/input-method.rb", "irb/locale.rb", "irb.rb", "irb/completion.rb", = " > > rbconfig.rb", "rubygems/rubygems_version.rb", "thread.rb", > > "rbconfig/datadir.rb", "rubygems/user_interaction.rb", "socket.so", " > > timeout.rb", "net/protocol.rb", "uri/common.rb", "uri/generic.rb", > > "uri/ftp.rb", "uri/http.rb", "uri/https.rb", "uri/ldap.rb", > "uri/mailto.rb", > > "uri.rb", "net/http.rb", "stringio.so", "yaml/error.rb", "syck.so", > > "yaml/ypath.rb", "yaml/basenode.rb", "yaml/syck.rb", "yaml/tag.rb", > > "yaml/stream.rb", "yaml/constants.rb", "rational.rb", "date/format.rb", > " > > date.rb", "yaml/rubytypes.rb", "yaml/types.rb", "yaml.rb", "zlib.so", > > "rubygems/remote_fetcher.rb", "digest.so", "digest/sha2.so", > > "rubygems/digest/digest_adapter.rb", "rubygems/digest/sha2.rb", " > > forwardable.rb", "parsedate.rb", "time.rb", "rubygems/source_index.rb", > > "rubygems/version.rb", "rubygems/specification.rb", "openssl.so", > > "openssl/bn.rb", "openssl/cipher.rb", "openssl/digest.rb", > > "openssl/buffering.rb", "fcntl.so", "openssl/ssl.rb", "openssl/x509.rb"= , > " > > openssl.rb", "rubygems/gem_openssl.rb", "rubygems/security.rb", > > "rubygems/custom_require.rb", "rubygems.rb", "ostruct.rb", "wirble.rb", > " > > prettyprint.rb", "pp.rb"] > > Looking at this huge list of things, I'm not sure what you ran. It's not > big > enough to be rails script/console, but is too big to be plain old irb: > > $ irb1.8 > irb(main):001:0> $LOADED_FEATURES > =3D> ["irb.rb", "e2mmap.rb", "irb/init.rb", "irb/context.rb", > "irb/workspace.rb", "irb/extend-command.rb", "irb/ruby-lex.rb", > "irb/slex.rb", "irb/notifier.rb", "irb/output-method.rb", > "irb/ruby-token.rb", "irb/input-method.rb", "readline.so", > "irb/locale.rb"] > irb(main):002:0> It WAS irb on my Linux system. I have syntax highlighting and tab completio= n turned on though. If you try just Ruby by itself, you'll find nothing is loaded by default. > > $ ruby1.8 -e 'p $LOADED_FEATURES' > [] > > HTH, > > Brian. > > --=20 If you could create a machine that copies hamburgers =97 you put one hambur= ger in and two equally good hamburgers come out the other side =97 it would be unethical not to do so and make it freely available. ------=_Part_184657_2008275.1180450171501--