Ruby: How can i access method inside a module>module>class
Su开发者_JAVA技巧ppose there is a code like that :
module A
module AB
class ABC
def one
....
end
def two
...
end
.........
.........
Now how can i access method "one" , "two" etc from other ruby file?
Thanks in advance.
You can call the method like this:
A::AB::ABC.new.one
精彩评论