Debian Codegraph @

test/fixtures/method_missing.rb

raw symbols SCIP
1 require 'mustache'
2
3 class MethodMissing < Mustache
4 self.template = '[ {{#list}}{{.}} {{/list}}]'
5
6 def method_missing(name, *args, &block)
7 return (0..10).to_a if name == :list
8 return super
9 end
10
11 def respond_to?(method)
12 method == :list
13 end
14 end
15
16 if $0 == __FILE__
17 puts MethodMissing.to_html
18 end