summaryrefslogtreecommitdiffstats
path: root/examples/sample.ru
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sample.ru')
-rw-r--r--examples/sample.ru10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/sample.ru b/examples/sample.ru
index 67937ac..6784d3d 100644
--- a/examples/sample.ru
+++ b/examples/sample.ru
@@ -13,6 +13,16 @@ Zorglub::Config.engine = 'haml'
Zorglub::Config.session_on = true
Zorglub::Config.root = File.dirname( File.absolute_path(__FILE__) )
#
+class Zorglub::Node
+ @count=0
+ class << self
+ attr_accessor :count
+ end
+ before_all do |node|
+ Zorglub::Node.count +=1
+ end
+end
+#
class Node1 < Zorglub::Node
#
def index a1, *a2