xq4bcq
Last Updated: February 25, 2016
·
661
· raysrashmi

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"

1 Response
Add your response

3768

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 ·