How to test method alias ruby

前端 未结 4 1835
夕颜
夕颜 2021-01-13 14:50

How to test if if method has an alias?

Let\'s say we have

Class Test
  class << self
    def a;end
    alias :b :a
  end
end

4条回答
提交回复
热议问题