new paste || ipv4:js fail, n/a or broken? | ipv6:js fail, n/a or broken? ||

paste 13401/ee0b | 696 views since 2018-07-06 18:39:25 | text/plain | wrap || empty reply | copy reply | quote reply
js:(
class MyHash < ::Hash
    def [] keys
        if keys.kind_of?(Array)
            keys.inject(self) { |memo, key| memo[key] }
        else
            super(keys)
        end
    end
end