🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #148

Re: Problem z RubyGems

#148
From: Marcin Mielżyński
Date: Tue, 22 Aug 2006 10:10
23 lines
1498 bytes
bragi.ragnarson@gmail.com wrote:

> 
> Tudzież zacząć skrypt od po prostu:
> 
> #!/usr/bin/ruby
> 
> require 'rubygems'
> require 'syntax'
> 

Toż to właśnie to pokazałem ;)

> Gemy mają własną implementację metody require. Same gemy muszą
> być najpierw wczytane by owa implementacja się włączyła.
> 

jest jeszcze metoda require_gem która jest lazy i wykorzystuje autorequire
w egde rails jest już zmieniony mechanizm wykorzystujący const_missing

reszta dokumentacji: http://rubygems.org/

lopex
Technical Details
Message-ID: <ecel5c$k82$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
References: <1156176653.789071.114270@m73g2000cwd.googlegroups.com> <eccmuf$lpr$1@news.onet.pl> <1156228538.414002.156900@75g2000cwc.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: Marcin Mielżyński <lopx@gazeta.pl>
Newsgroups: pl.comp.lang.ruby
Subject: Re: Problem z RubyGems
Date: Tue, 22 Aug 2006 12:10:07 +0200
Organization: Onet.pl
Lines: 23
Message-ID: <ecel5c$k82$1@news.onet.pl>
References: <1156176653.789071.114270@m73g2000cwd.googlegroups.com>   <eccmuf$lpr$1@news.onet.pl> <1156228538.414002.156900@75g2000cwc.googlegroups.com>
NNTP-Posting-Host: cuo178.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1156241389 20738 83.19.70.178 (22 Aug 2006 10:09:49 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Tue, 22 Aug 2006 10:09:49 +0000 (UTC)
X-Sender: 5Da2qcG7AWj7WISFX859Php/OS6q4VnB
In-Reply-To: <1156228538.414002.156900@75g2000cwc.googlegroups.com>
User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit