Shopify / liquid

Liquid markup language. Safe, customer facing template language for flexible web apps.

Home Page:https://shopify.github.io/liquid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

class Random already exists

fade2black opened this issue · comments

Could you please change the class name Random in this example? Doesn't Random already exist in Ruby's core library?

The following definition my result in the following error: superclass mismatch for class Random because the Random class is already defined somewhere else (in the core lib in particular, at least for Ruby 3).

class Random < Liquid::Tag
# ...
end

Sure, I've made the change