Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add example

  • Loading branch information...
commit 5b989019221cedda92c7776c785a12bd9c6c3d72 1 parent 17893bf
@mtrudel authored
Showing with 13 additions and 0 deletions.
  1. +9 −0 examples/ticket/menu.rb
  2. +4 −0 examples/ticket/ticket.rb
View
9 examples/ticket/menu.rb
@@ -0,0 +1,9 @@
+menutree do |tree|
+ def action_one(*args)
+ puts "One"
+ end
+
+ def action_two(*args)
+ puts "Two"
+ end
+end
View
4 examples/ticket/ticket.rb
@@ -0,0 +1,4 @@
+require 'rubygems'
+require 'menutree'
+
+MenuTree::Base.new(File.dirname(__FILE__)).repl(ARGV)
Please sign in to comment.
Something went wrong with that request. Please try again.