On Wed, 24 Mar 2004 13:34:06 +0900, James Britt wrote:
> Simon Strandgaard wrote:
>> Ruby does already enforce CamelCase for class/modules.
> #-- Begin example ---
> class Not_camel_case
>    def foo
>      puts "Hello."
>    end
> end
> 
> 
> Not_camel_case.new.foo
> #------- End -----
> 
> 
> This works fine for me.  Where is CamelCase enforced?
> 

initial letter must be upcase. Neither lowercase nor underscore.
Mild degree of enforcement ;-)

server> ruby a.rb 
a.rb:1: class/module name must be CONSTANT
server> cat a.rb 
class im_a_class
end
im_a_class.new
server>

--
Simon Strandgaard