私が持っていると言って、
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
ますか?