说我有,
class Foo
def self.bar
puts "I want to print #{some_method_for_class_name} and #{some_method_for_method_name}."
end
end
有什么方法可以分别获得“Foo”和“bar”的位置some_method_for_class_name
吗some_method_for_method_name
?
说我有,
class Foo
def self.bar
puts "I want to print #{some_method_for_class_name} and #{some_method_for_method_name}."
end
end
有什么方法可以分别获得“Foo”和“bar”的位置some_method_for_class_name
吗some_method_for_method_name
?