From: corey konrad <0011@...> Date: 2006-05-14T08:36:24+09:00 Subject: Re: win32api oh ok thanks for the info, i jus started ruby like a week ago, but playing around with th e wind32api or doing shell stuff in linux are probably he first thing i am going to do to get more comfortable with programming. I think that it would make sence to play around with as many classes and methods as i can first before writing my own. Do you think that is a good plan? Dave Burt wrote: > corey konrad wrote: >> oh ok thanks thats right because Win32API is a class so it has to be >> capatalized, kind of jumping ahead of myself there but i was just >> curious. > > No, it's not a class, it's a required file. The case has to match method > name Init_... > > irb(main):001:0> require 'wIn32ApI' > LoadError: 127: The specified procedure could not be found. - > Init_wIn32ApI > > Most libraries use all lowercase. Another one that trips people up is > "RMagick". "Win32API" is the only one with uppercase letters in the > standard library, as you can see from the list at > http://www.ruby-doc.org/stdlib/ > > Cheers, > Dave -- Posted via http://www.ruby-forum.com/.