Sha256: af8cdf53baac9b33f7320d9981dc8f8bd35fab0358494de7c10720674ada15cc
Contents?: true
Size: 369 Bytes
Versions: 9
Compression:
Stored size: 369 Bytes
Contents
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' 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 & 3 rubygems