酷,超级酷,Superators Add New Operators to Ruby

酷,超级酷,Superators Add New Operators to Ruby



[Copy to clipboard] [ - ]
哈哈,真棒,拿来变魔术用
你怎么总能找到好东西?
引用:
real_operator_from_superator("<<--").should == "<<"
  real_operator_from_superator("<~~-").should == "<"
  real_operator_from_superator("**+~").should == "**"
  real_operator_from_superator("*+~~").should == "*"
  real_operator_from_superator("<=~~").should == "<="
  real_operator_from_superator(">=+-").should == ">="
  real_operator_from_superator("=~~~").should == "=~"
  real_operator_from_superator("<=>+").should == "<=>"
  real_operator_from_superator("===+").should == "==="
  real_operator_from_superator("==+-").should == "=="
so great! 哈哈,好东西。
好东东越来越多了,这叫众人添柴...
使用者方便了,哈!