Sha256: fcd22892aa3ba2a729dd9ebef9acb3c54840772c6171ceafaaaa61af9683dd5f
Contents?: true
Size: 371 Bytes
Versions: 47
Compression:
Stored size: 371 Bytes
Contents
module Liquidscript module Generator class Base module DSL module ClassMethods def to_generate(code, &block) define_method(:"generate_#{code}", &block) protected :"generate_#{code}" end end def self.included(base) base.extend ClassMethods end end end end end
Version data entries
47 entries across 47 versions & 1 rubygems