From: jonT Date: 2006-02-06T03:48:20+09:00 Subject: Re: Adding properties to a method? >> Of coures what i'd actually get is: >> method(:bar).foo #= nil >> because method(:bar) returns a new object each time. >A String, in your example. Do you want the string to respond to the >message 'foo=' ? method(:bar) # => method(:bar).class # => Method method(:bar) actually returns a method object. >What do you mean by "bind" and "properties"? Sorry. By bind I meant simply to set the value of a properety in the usual way. By property I mean property: a public field. Essentially what I'm aiming to do is to have some way of storing data about a method (which is either private to Object or a member of some class or module) such that it is publicly available. Example: def cd(dir) FileUtils.cd(dir.path) nil end method(:cd).args_classes={0=>JDir} not terribly Ruby like but you get the picture. Jon