Debian Codegraph @

test/fixtures/crazy_recursive.rb

raw symbols SCIP
1 require 'mustache'
2
3 class CrazyRecursive < Mustache
4 self.path = File.dirname(__FILE__)
5
6 def top_nodes
7 [{ :contents => "1",
8 :children =>
9 [{ :contents => "2",
10 :children =>
11 [{ :contents => "3",
12 :children => []
13 }]
14 },
15 { :contents => "4",
16 :children =>
17 [{ :contents => "5",
18 :children =>
19 [{ :contents => "6",
20 :children => []
21 }]
22 }]
23 }]
24 }]
25 end
26 end
27
28 if $0 == __FILE__
29 puts CrazyRecursive.to_html
30 end