Z
Zhenning Guan
I have a file like this;
class File
class << self
def diff
#some stuff--------------
end
end
end
def method_1
#-----------
end
def method_2
#------------
end
method_1
method_2
------------------------------------
now ,I need to rewrite this file.
but I don't how to deal with the class File....
one.
+++++++++++++++++++
class File
class << self
def diff
#some stuff--------------
end
end
end
class Myclass
def method_1
end
def method_2
end
end
++++++++++++++++++++
two
++++++++++++++++++++
class Myclass
class File
class << self
def diff
#some stuff--------------
end
end
end
def method_1
end
def method_2
end
end
+++++++++++++++++++++
so, which way should I use?
any thought will be appreciated.
class File
class << self
def diff
#some stuff--------------
end
end
end
def method_1
#-----------
end
def method_2
#------------
end
method_1
method_2
------------------------------------
now ,I need to rewrite this file.
but I don't how to deal with the class File....
one.
+++++++++++++++++++
class File
class << self
def diff
#some stuff--------------
end
end
end
class Myclass
def method_1
end
def method_2
end
end
++++++++++++++++++++
two
++++++++++++++++++++
class Myclass
class File
class << self
def diff
#some stuff--------------
end
end
end
def method_1
end
def method_2
end
end
+++++++++++++++++++++
so, which way should I use?
any thought will be appreciated.