Module: Agnostic::Helper
- Defined in:
- lib/agnostic/helper.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
6 7 8 9 10 |
# File 'lib/agnostic/helper.rb', line 6 def included(klass) @helpers.each do |block| klass.class_eval(&block) end end |
.register(&block) ⇒ Object
12 13 14 |
# File 'lib/agnostic/helper.rb', line 12 def register(&block) @helpers.push(block) end |