1
獲取類名和方法名
說我有,在Ruby中
class Foo
def self.bar
puts "I want to print #{some_method_for_class_name} and #{some_method_for_method_name}."
end
end
有沒有辦法讓「富」,並分別some_method_for_class_name
和some_method_for_method_name
的地方「吧」?