Hi folks,
I just started getting this error all of a sudden (command line snippet):
vmac:~/workspace/eir vince$ ruby -v
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
vmac:~/workspace/eir vince$ rails -v
Rails 1.0.0
vmac:~/workspace/eir vince$ gem -v
0.8.11
vmac:~/workspace/eir vince$ ./script/server
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__': No
such file to load -- initializer (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from ./script/../config/boot.rb:16
from ./script/server:2:in `require'
from ./script/server:2
vmac:~/workspace/eir vince$
Is anybody else having the same issue? Any clues as to what may be wrong?
I did nothing to my environment, but the problem started after Mac OS X
notified me that updates were available and I started them in the
back-ground.
Logan Capaldo
wrote:
> > Likewise in ruby:
>
> { :class => "A" }
>
>
1.send(:class)
>
> The hash key has the same name as the method being sent
via send, but
> the results are different.
I too am struggling to
understand, and this statement has me even more
confused!
How can my
results be predictable if :class isn't uniquely associated
with something
(hash key, or method)? Doesn't this lead to ambiguities?
No. Like most
people, you seem to have assumed that Symbols are
special. They aren't.
Really, there's not much difference between:
{ :class => "A" }
and
{ 5
=> "A" }
It's the *methods* that are special. Not the Symbols. Symbols are
just
invariant names. The only *really* special thing about them is
that
syntax automatically creates Symbol objects, and those Symbol
objects
exist for the life of the program. That is,
def foo
end
creates
a Symbol called :foo. (If one doesn't already exist.) Similarly,
class Foo
end
creates a Symbol called :Foo (again, if one doesn't already exist).
But
the real magic of a Symbol isn't in the Symbol; it's just a name.
There's
nothing special or magical about the name "Les Nightingill" --
except that it
identifies you ... and anyone else named "Les
Nightingill." There might be
very few people named "Les Nightingill",
but I know of at least three people
named "Austin Ziegler" (including
myself) and many more named "Austin". It's
how you *use* the name
involved that makes the name special.
So the magic
behind #attr_acessor and #send (or #__send__) is the
method, not its Symbol
argument.
Sort of like "Santorum."
-austin
···
On 4/7/06 11:30 AM, "Austin Ziegler" <halostatue@gmail.com> wrote:
On 4/7/06, Les Nightingill <lester@ix.netcom.com> wrote:
--
Austin Ziegler *
halostatue@gmail.com
* Alternate: austin@halostatue.ca