xq4bcq
Last Updated: February 25, 2016
·
489
· raysrashmi
E3e5923c7e2954158e9b9b0493c9132c

Class and Module can not be of same name

class Test end </pre></code>

module with same name

module Test end </pre></code>

it will throw error => "Test ia not a module"

module Test end </pre></code>

class with same name

class Test end </pre></code>

it will throw error => "Test ia not a class"

Say Thanks
Respond

1 Response
Add your response

3768
Photo on 08.01.2013 at 04.15

I'd like to know how to put methods in class so it behaves as module as fat as we talk about "include" behavior :)

over 1 year ago ·