MissingMethodException when adding String.metaClass.call then using it on String literal

前端 未结 0 1437
遇见更好的自我
遇见更好的自我 2020-11-29 07:35

I\'m trying to make String/GString objects callable with something like

String.metaClass.call = { println toUpperCase() + " &qu         


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