Sha256: ebe7c7110db8aecb7969b8bf5a9e229a499985e1607fb7aaabd4963130f3cc8d
Contents?: true
Size: 417 Bytes
Versions: 29
Compression:
Stored size: 417 Bytes
Contents
class Radiant::AdminUI::RegionPartials def initialize(template) @partials = Hash.new {|h,k| h[k] = "<strong>`#{k}' default partial not found!</strong>" } @template = template end def [](key) @partials[key.to_s] end def method_missing(method, *args, &block) if block_given? @partials[method.to_s] = @template.capture(&block) else @partials[method.to_s] end end end
Version data entries
29 entries across 29 versions & 3 rubygems