-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 22 Mar 2002 15:29, NAKAMURA, Hiroshi wrote:
> Hi Holden,
>
> > From: Holden Glova [mailto:dsafari@xtra.co.nz]
> > Sent: Thursday, March 21, 2002 7:02 PM
> >
> > def query_raa(package_name)
> > entry_indexes = @raa.search_for_entry_names(package_name)
> > puts entry_indexes[0].type.to_s
> > puts entry_indexes[0].inspect
> > puts entry_indexes[0].name
> > end
> >
> > #<RAA::Proxy:0x402cfbe8 @name="Active attribute">
> > ./raa-wrapper-client.rb:85:in `query_raa': undefined method
> > `name' for
> > #<RAA::Proxy:0x402cfbe8> (NameError)
> > from ./raa-wrapper-client.rb:48:in `initialize'
> > from ./raa-wrapper-client.rb:48:in `call'
> > from ./raa-wrapper-client.rb:77:in `start'
> > from ./raa-wrapper-client.rb:101
>
> Hmm. Can I see a definition of RAA::Proxy?
> What's the result of 'entry_indexes[0].methods.sort' ?
>
> Regards,
> // NaHi
Ok, it's just a data transfer object.
class Proxy
def initialize(attributes)
attributes.each do |attribute|
name = attribute.id2name
instance_eval(<<-EOS)
class << self
attr_accessor :#{name}
end
EOS
end
end
end
Here is the results from entry_indexes[0].methods.sort
==
===
=~
__id__
__send__
class
clone
display
dup
eql?
equal?
extend
freeze
frozen?
hash
id
inspect
instance_eval
instance_of?
instance_variables
is_a?
kind_of?
method
methods
nil?
private_methods
protected_methods
public_methods
respond_to?
send
singleton_methods
taint
tainted?
to_a
to_s
type
untaint
Any ideas NaHi? Thanks in advance for your time.
- --
Signed,
Holden Glova
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8mtbz+mF116Lw2cQRAjnbAJ9O3vcd0X1qmrKLB4TCQBacTdY65wCfVlru
GuKYcRI9XvFo1kdf1SQS8no=
=nG9Q
-----END PGP SIGNATURE-----