Permalink
Browse files

Add example

  • Loading branch information...
1 parent 17893bf commit 5b989019221cedda92c7776c785a12bd9c6c3d72 @mtrudel committed Jan 4, 2011
Showing with 13 additions and 0 deletions.
  1. +9 −0 examples/ticket/menu.rb
  2. +4 −0 examples/ticket/ticket.rb
View
@@ -0,0 +1,9 @@
+menutree do |tree|
+ def action_one(*args)
+ puts "One"
+ end
+
+ def action_two(*args)
+ puts "Two"
+ end
+end
@@ -0,0 +1,4 @@
+require 'rubygems'
+require 'menutree'
+
+MenuTree::Base.new(File.dirname(__FILE__)).repl(ARGV)

0 comments on commit 5b98901

Please sign in to comment.