Sha256: 2bbe8da7ccef006a3454a074894a49b2a35f989778ae3d423862dbfeced61725
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
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 @name = name @callback = callback Rcurse.add_helper self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rcurse-0.5.1 | lib/rcurse/helper.rb |