lib/rcurse/helper.rb in rcurse-0.4.0 vs lib/rcurse/helper.rb in rcurse-0.5.1

- old
+ new

@@ -1,5 +1,15 @@ module Rcurse + @helpers = Hash.new + + def self.add_helper helper + @helpers[helper.name] = helper + end + + def self.helpers + @helpers + end + class Helper attr_accessor :name attr_accessor :callback def initialize name, &callback \ No newline at end of file