Rails: Accessing a variable where the name of the variable was passed into the function as an argument

前端 未结 0 946
离开以前
离开以前 2021-02-01 03:12
#string = "I love long strolls on the beach"
def keyword(string)
  @keyword_array = ["ball","sand","spade"]

  ball = ["red&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题