Sha256: 5e8b8b98a791be7ab862dc1fb8d30570efbca12c4d9951791b690090d2b7c024
Contents?: true
Size: 491 Bytes
Versions: 3
Compression:
Stored size: 491 Bytes
Contents
require 'inline_template_loader' class DslUsesInlineTemplateLoader def self.load_template # 0: dsl_uses_inline_template_loader.rb: load_templates # 1: external_file.rb: &block passed for dsl # 2: dsl_uses_inline_template_loader.rb: class_eval # 3: dsl_uses_inline_template_loader.rb: dsl # 4: external_file.rb: top @@templates = InlineTemplateLoader.load 4 end def self.dsl(&block) class_eval &block end def self.templates @@templates end end
Version data entries
3 entries across 3 versions & 1 rubygems