Sha256: 3f8203960d9eb7775fd30af1bed3bc193fb7a6d628269285c162688ba398b228
Contents?: true
Size: 315 Bytes
Versions: 9
Compression:
Stored size: 315 Bytes
Contents
require 'mustache' class MethodMissing < Mustache self.template = '[ {{#list}}{{.}} {{/list}}]' def method_missing(name, *args, &block) return (0..10).to_a if name == :list return super end def respond_to?(method) method == :list end end if $0 == __FILE__ puts MethodMissing.to_html end
Version data entries
9 entries across 9 versions & 2 rubygems